43
rated 0 times
[
47]
[
4]
/ answers: 1 / hits: 47210
/ 15 Years ago, fri, september 11, 2009, 12:00:00
I've been thinking/searching for an equivalent of the problem that I am having below, and nothing could be found.
Is there a way I can rewrite this to work with jQuery as an alternative?
First half of the code.
<a href=link.php?test=true onclick=request(this) target=_blank>
<a id=step2 href=javascript:alert('NOT FINISHED!');>
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>
Whereas I want to do a jQuery var request type thing. I want onclick=request(this)
to work with my jQuery.
More From » jquery