Jump to content

problem in jquery


programAngel
 Share

Recommended Posts

I have written the page in the link in the next line:http://barzilaymor.c...us/DiurPlus.php In the bottom of the code I have used a jquery command that create a listener to a click event. But it rum the function automatically after the page finished to load regardless of any click.I talk about this following command.

 $('#next-page').on('click',changepage( 2 )); 

the changepage function is executed immediately after the page is finished to load. What is the reason for this behavior and how can I solve it?

Edited by programAngel
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...