View Single Post
Old 11-23-2012, 11:33 AM   PM User | #3
lewisstevens1
New Coder

 
Join Date: Apr 2008
Posts: 22
Thanks: 3
Thanked 0 Times in 0 Posts
lewisstevens1 is an unknown quantity at this point
Ah thanks that worked but i did have to remove the
[1] from var theNum = this.src.match(/\d/)[1];
else it wouldn't work.

So why doesnt below work?
Code:
<script>
function helpme() { alert("hello"); }
</script>

<input type="button" onClick="helpme()" value="submit me"/>
Thankyou for your help
lewisstevens1 is offline   Reply With Quote