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

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -