I am using a third party grid to display some data and I dont have any control over the markup it produces
In the example below, I'd like to hide the submit buttons for the rows where the adjacent cell has no value (i.e. the middle row in the example below)
I assume this is possible with jQuery but am a bit stuck on how to do stuff conditionally
<div id="grid"> <table> <tr> <td>123</td><td><a href="/go/somewhere">Submit</a></td> </tr> <tr> <td></td><td><a href="/go/somewhere">Submit</a></td> </tr> <tr> <td>123</td><td><a href="/go/somewhere">Submit</a></td> </tr> </table> <div> any ideas?