Skip to content Skip to sidebar Skip to footer

How To Apply The Id To Form Dynamically In Phonegap Android?

I am creating an app in which I am using an autocomplete view the list is created dynamically in the js file. Know what i want is if i create more than one autocompete i want to a

Solution 1:

There was a simple change to made I didnt find before asking the Question. I just change the code form:

 $.mobile.activePage.find('input[data-type="search"]').attr('id','namesearch');

to this:

 $.mobile.activePage.find('input[placeholder="Find city..."]').attr('id','namesearch');

before i was finding the data-type because of this it was applying id to all the fields having the data type =search .

Post a Comment for "How To Apply The Id To Form Dynamically In Phonegap Android?"