views:

107

answers:

1

One of the features is that when a user clicks on something, something happens. How do I simulate this click without just calling the function?

+3  A: 

Using jQuery, you can do $("#myElementId").click() to simulate a click.

JacobM
+1 for answer and for the awesomeness of jquery
Daniel
Truly jquery is the bomb.
JacobM
You could also use `trigger` (http://docs.jquery.com/Events/trigger)
fudgey