javascript - JS referenceError: change is not defined -
i have 4 input boxes call function when key lifted using onkeyup
event. reason, getting error saying "change" (the function's name) not defined. defining function correctly, have no idea what's causing this.
the demo explain better me: http://i.snag.gy/aieog.jpg
ok, got it. getting error, cause not had suspected. http://jsfiddle.net/qwcz6/2/
not sure you're trying do, following works (fiddle):
function change(variable) { var value = $(variable).val(); alert(value); $(variable).html(value); }
Comments
Post a Comment