I thought / searched for the equivalent of the problem that I have and nothing was found. Is there a way to rewrite this to work with jQuery as an alternative?
The first half of the code.
<a href="link.php?test=true" onclick="request(this)" target="_blank"> <a id="step2" href="javascript:alert('NOT FINISHED!');">
The second half of the code.
<script language="javascript"> var requests = 16; function request(self) {if(self.href != "#") requests -= 1; self.childNodes[0].src = "images/clear.gif"; if(requests === 0) document.getElementById("step2").href = "next.php";} </script>
While I want to make a jQuery var query type object. I want onclick="request(this) work with my jQuery.
javascript function jquery href
Homework
source share