select element by onclick event?
I need to take the link away where the onclick contains 'return listItemTask'.
Preferably leaving whatever is in the link intact.
-
<a href="javascript:void(0);" onclick="return listItemTask('cb0','unpublish')">
<img src="images/tick.png" />
</a>
how to do that?
I tried:
-
$("input[onclick^='return listItemTask']").html("taken_out");
which does nothing