Hey guys!
This is a weird one. I'm not sure what to make of it.
I have a two functions like so:
What I am expecting in the alert: 1234-1 or 1234-2 depending on what was clicked.
What I am getting is: 1234.
?? I'm soo confused. What's happening to info?? It doesn't make any sense!
Going crazy and appreciate any help on this one.
Thanks!
prgmrgirl
This is a weird one. I'm not sure what to make of it.
I have a two functions like so:
Code:
<input type='radio' name='foo' value='1234-1' onclick='myFunction(this.value)'/>
<input type='radio' name='foo' value='1234-2' onclick='myFunction(this.value)'/>
function myFunction(val)
{
//do some stuff that doesn't change the value of val
otherFunction(val)
}
function otherFunction(val)
{
alert(val)
}
What I am expecting in the alert: 1234-1 or 1234-2 depending on what was clicked.
What I am getting is: 1234.
?? I'm soo confused. What's happening to info?? It doesn't make any sense!
Going crazy and appreciate any help on this one.
Thanks!
prgmrgirl