How about writing the index of the textbox into it's name attribute
(or another attribute) and then get the index by
  var index = $(this).attr("name");

by(e)
Stephan

2009/2/2 bittermonkey <brakes...@gmail.com>:
>
> Hi,
>
> How do I get the index of the currently clicked textbox?  I have 5
> textboxes in a form, all of which I am binding a click event.  Here is
> the code:
>
>        $("#associate-form input[type=text]").bind("click", function()
> {
>            alert(this);  //what is its index position from the 5
> other textboxes?
>        });
>
> Thanks in advance.

Reply via email to