¡@

Home 

2014/10/16 ¤W¤È 12:04:08

jquery Programming Glossary: imgstr

javascript function that accepts (#id).val() returns wrong value

http://stackoverflow.com/questions/10151749/javascript-function-that-accepts-id-val-returns-wrong-value

with the id kill . Here is my JavaScript #kill .click function getImage this .val function getImage code var code imgstr imgstr mypath code .png return imgstr Unfortunately the wrong value is getting returned. But if I assign the value inside.. the id kill . Here is my JavaScript #kill .click function getImage this .val function getImage code var code imgstr imgstr mypath code .png return imgstr Unfortunately the wrong value is getting returned. But if I assign the value inside the function.. #kill .click function getImage this .val function getImage code var code imgstr imgstr mypath code .png return imgstr Unfortunately the wrong value is getting returned. But if I assign the value inside the function getImage like this #kill..