The problem is that each of your input boxes have the same ID. All instance
of the Autocompleter are being attached to that ID, and the DOM only returns
the first one.

On Wed, Oct 8, 2008 at 12:42 PM, kevandju <[EMAIL PROTECTED]> wrote:

>
> Example of what HTML looks like if a user chooses to add 3 channels:
>
> <tr class="records">
> <td align="left"><input type="checkbox" class="form" name="addch[]"
> value="0" checked></td>
>         <td align="left"><input type="text" class="form"
> name="hlp_chan_num[]" size="5" value="2"></td>
>         <td align="left"><input type="text" class="form" id="hlp_callsign"
> name="hlp_callsign[]" size="12" value="">
>        <div id="hint"></div>
>        <script type="text/javascript">
>                new
> Ajax.Autocompleter("hlp_callsign","hint","callsign_search.php",
> {paramName:"name", minChars:2});
>        </script>
> </td>
> </tr>
> <tr class="records"><td align="left"><input type="checkbox"
> class="form" name="addch[]" value="1" checked></td>
>         <td align="left"><input type="text" class="form"
> name="hlp_chan_num[]" size="5" value="3"></td>
>         <td align="left"><input type="text" class="form" id="hlp_callsign"
> name="hlp_callsign[]" size="12" value="">
>        <div id="hint"></div>
>        <script type="text/javascript">
>                new
> Ajax.Autocompleter("hlp_callsign","hint","callsign_search.php",
> {paramName:"name", minChars:2});
>        </script>
> </td>
> </tr>
> <tr class="records"><td align="left"><input type="checkbox"
> class="form" name="addch[]" value="2" checked></td>
>         <td align="left"><input type="text" class="form"
> name="hlp_chan_num[]" size="5" value="4"></td>
>         <td align="left"><input type="text" class="form" id="hlp_callsign"
> name="hlp_callsign[]" size="12" value="">
>        <div id="hint"></div>
>        <script type="text/javascript">
>                new
> Ajax.Autocompleter("hlp_callsign","hint","callsign_search.php",
> {paramName:"name", minChars:2});
>        </script>
> </td>
> </tr>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to