javascript - jQuery Click Table Row Toggle Section -


I have the following markup (which I have no control and is necessary as javascript can be manipulated. )

What I am trying to do is that when the table row is clicked on the "Toggle Me here" link, it is automatically clicked

I keep getting in a recursive loop with my own current setup

then the table row Click anywhere in the link (the link should actually click on the link) click on the link for which the red box will be toggled by clicking on the link independent link from the table row, normally clicking the 'selected row' The call should be done without removing the event.

Disclaimer, the answer given below is not a friendly solution if possible Go with a solution using controversial operators.

If their solution is not an option, e.g. This link is automatically generated by some, so you can:

  $ (function () {$ ('. SelectedRow'). (Function (e) {if (E. Target.nodeName! = 'A') $ (this) .Fund ('TD: Last A'). Click ();});});  

, it only checks that the click is not done at the first place of the anchor. If this is the case, then it is done what it needs to do, click The line should not take any action on the bubbling incident.


Comments