On May 16, 2007, at 7:54 AM, AMruta wrote:> Hi all
> Here i am stuck to a problem . i want to execute the click event of a
> button which is being located in the table cell which dont have any
> id.
> So please give me any solution for that.
>
> Example:
> <table id="MainTable">
> <tr>
> <td>
> <table id="ShipTableMenu" >
> <tr>
> <td><input type="button"
value="Test" id="cmdTest"
> name="cmdTest" onclick="TestClick(true,false);">
> </td>
> </tr>
> </td>
> </tr>
> </table>
>
>
> Now I want to Locate the Test Button....
>
> Thanks in advance.
If you have prototype.js (which you certainly do, right?), you can $
(''cmdTest'').click();
Your button has an id, so use it!
-Rob
Rob Biedenharn http://agileconsultingllc.com
Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---