javascript - jQuery autocomplete plugin not working in ajax loaded contents -
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
Post a Comment