how to fire an event from a different html object

N

Nacho

Hello all

I have a hidden checkbox with an "onclick" event.
I can not physically perform this event (obviously) because the
checkbox is hidden.
I would like to simulate the onclick event from outsite. Lets say from
within a function.

I was thinking whether I can do something like that:

Function myFunction(checkboxName)
{
.....
....
checkboxName.onclick(); // here fire the event of the checkbox
...
...

}

but it does not work...

Can anyone please give me a hand

Chaeers!

Nacho
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top