Ok thats what I'm doing now but I was hoping I could simplify my code

On Aug 28, 9:21 am, garrett <[EMAIL PROTECTED]> wrote:
> Give the buttons a unique ID and get the ID using the attr function
>
> On Aug 27, 9:12 pm, Maarten <[EMAIL PROTECTED]> wrote:
>
> > with .child I know I can get the number of children of a certain
> > element, but if i have something like this
>
> > <input type="button" class="buttonfun" value="Button One">
> > <input type="button" class="buttonfun" value="Button Two">
>
> > is there a way to know when i click on either one, that I clicked on
> > child 1 of 2 or 2 of 2?

Reply via email to