Click to See Complete Forum and Search --> : retrieving anme of checkbox


damon2003
12-04-2003, 09:39 AM
Hi,
I have several dynamicaly producced checkboxes on a page. I want a javascript function so that when a checkbox is clicked the name of that particular checkbox is returned. How can this be done?
thanks

fredmv
12-04-2003, 10:06 AM
<input type="checkbox" onclick="alert(this.name);" name="foo" />

Pittimann
12-04-2003, 11:50 AM
Hi!

To damon2003:
------------
I will not repeat, what I posted in the thread you killed because you disliked my statement - I don't want you to delete all your threads. I would have posted you the modifications I talked about for what you asked for some minutes later.

Hope, you keep in mind what I said - if not I'm going to repeat myself...
------------
To the rest of the world:
Sorry people for misusing this thread!

Cheers - Pit