Reputation: 4132
I'm having a few issues getting a jquery to perform an onclick event.
I am able to get it working by using a simple Click ME
Though this isn't the best practice.
I have created a jsfiddle to better explain what I am trying to do.
Upvotes: 0
Views: 3970
Reputation: 927
Check http://jsfiddle.net/UuSWm/11/
You code was practically correct (you've missed the #
on #p1
).
I've also removed the onLoad
event option on the jsfiddle to make the test work.
Upvotes: 3