javascript - jQuery autocomplete plugin not working in ajax loaded contents -


jquery demo page

i getting problem auto suggestion of country contents loaded ajax. inside ajax loaded forms.

i search fix problem everywhere post auto suggestion form server. not using server suggestion of jquery autocomplete plugin. can solve problem??

/********************************** local start ******************/ var states = [     'alabama', 'alaska', 'arizona', 'arkansas', 'california',     'colorado', 'connecticut', 'delaware', 'florida', 'georgia', 'hawaii',     'idaho', 'illinois', 'indiana', 'iowa', 'kansas', 'kentucky', 'louisiana',     'maine', 'maryland', 'massachusetts', 'michigan', 'minnesota',     'mississippi', 'missouri', 'montana', 'nebraska', 'nevada', 'new hampshire',     'new jersey', 'new mexico', 'new york', 'north carolina', 'north dakota',     'ohio', 'oklahoma', 'oregon', 'pennsylvania', 'rhode island',     'south carolina', 'south dakota', 'tennessee', 'texas', 'utah', 'vermont',     'virginia', 'washington', 'west virginia', 'wisconsin', 'wyoming' ];  $('#name1').autocomplete({     source:[states] });  $('#name').autocomplete({     source:[states] }); /*********************************** local end ***********************/ 

hello gautam change code

from

source:[states] 

to

source:states 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -