willsherwood
asked on
JS img.match
I need help debugging a line of code that's giving an error.
function chgState (objElement)
{
...
var imgID=img.match(/(\d+)\.(g if|jpg)$/i );
...
}
call to the above function:
<span onClick="chgState(this)">< img src="images/1.gif"><input type="hidden" name="A_1" > </span>
error reported by error console
Error: img.match is not a function
any advice for how to resolve?
thanks
function chgState (objElement)
{
...
var imgID=img.match(/(\d+)\.(g
...
}
call to the above function:
<span onClick="chgState(this)"><
error reported by error console
Error: img.match is not a function
any advice for how to resolve?
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER