Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery Many autocompletes on the same page
    primarykey
    data
    text
    <p>I'm trying to implements the autocomplete function of Jquery on a formulary made on a jsp.</p> <p>I have no problems for one textarea, but impossible to do that with many of them.</p> <p>This is the codes of my page: I use pushs to create the lists cause datas are imported from a java bean. This code is the result of the page creation after running the application and caught with CTRL-U.</p> <pre><code> &lt;script&gt; $(function() { var TagsEntis = new Array(); TagsEntis.push("MAIRIE"); TagsEntis.push("COMMUNAUTE URBAINE"); &lt;!--Others pushs here--&gt; $( "#tagsentis" ).autocomplete({source: TagsEntis}); }); &lt;/script&gt; &lt;script&gt; $(function() { var TagsNames = new Array(); TagsNames.push("CAPILLON"); TagsNames.push("DUFOUR"); TagsNames.push("STARON"); &lt;!--Others pushs here--&gt; $( "#tagsnames" ).autocomplete({source: TagsNames}); }); &lt;/script&gt; </code></pre> <p>And after the definition of the textareas using these tags:</p> <pre><code> &lt;form method="post" action="form.htm" name="formulary"&gt; &lt;table id="formulary"&gt; &lt;tr&gt; &lt;td&gt; Entity &lt;/td&gt; &lt;td&gt; &lt;spring:bind path="PersonForm.entity"&gt; &lt;input id="tagsentis" type="text" name="entity" value=""/&gt; &lt;/spring:bind&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; LastName &lt;/td&gt; &lt;td&gt; &lt;spring:bind path="PersonForm.lastname"&gt; &lt;input id="tagsnames" type="text" name="lastname" value=""/&gt; &lt;/spring:bind&gt; &lt;/td&gt; &lt;/tr&gt; </code></pre> <p>This code works, but just for the LastName Textarea.</p> <p>Can you help me please?</p> <p>Thank you so much in advance ;)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload