¡@

Home 

2014/10/16 ¤W¤È 12:06:19

jquery Programming Glossary: phoneid

jQuery variable claiming it's undefined when it has been defined

http://stackoverflow.com/questions/8198374/jquery-variable-claiming-its-undefined-when-it-has-been-defined

is undefined and when filling in the second it claims phoneid is undefined. Here's the HTML div id formcontainer input id.. li null return alert No match var phone li.selectPhone var phoneid phone.replace iPhone iphone .toLowerCase function findFirmware.. alert No match var firmware li.selectFirmware .info .hide phoneid firmware .show function selectPhone li findPhone li function..

jQuery variable claiming it's undefined when it has been defined

http://stackoverflow.com/questions/8198374/jquery-variable-claiming-its-undefined-when-it-has-been-defined

when entering a value in input1 it claims the variable for phone is undefined and when filling in the second it claims phoneid is undefined. Here's the HTML div id formcontainer input id input1 input id input2 div div id iphone2g1.1 class info style.. maxItemsToShow 10 selectFirst true function findPhone li if li null return alert No match var phone li.selectPhone var phoneid phone.replace iPhone iphone .toLowerCase function findFirmware li if li null return alert No match var firmware li.selectFirmware.. .toLowerCase function findFirmware li if li null return alert No match var firmware li.selectFirmware .info .hide phoneid firmware .show function selectPhone li findPhone li function selectFirmware li findFirmware li I'm using this for the autocomplete..