CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2003
    Location
    Dublin
    Posts
    7

    Unhappy Simulating a Radio button click event

    I have a piece of code which currently executes a particular function when a radio button is clicked. This button has to be removed(or at least hidden). How can I call this function, without actually clicking the button. Is there a way of simulating a radio button click from within the code.

    Code:
    <input type="radio" name="lc_category" value="<%= productCategory.getCategoryPK() %>" onClick="javascript: setOnChangeAction('selectqq', 'lc_type<%= productCategory.getCategoryPK() %>', 'lc_category', '<%= productCategory.getCategoryPK() %>', <%= arrayIdName + "[" +selectedIndexCode+"]" %>);" >
    Any suggestions are appreciated
    Thanks
    jlawler
    Neo Sanders

  2. #2
    Join Date
    Jan 2002
    Location
    Halifax, NS, Canada
    Posts
    985
    When do you want it to be "clicked"?

    Sure you can call your function without actually having the radio button on the page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured