Jump to content
Sign in to follow this  
Cooley

JQuery mobile click event

Recommended Posts

Hello all I would like to know how to register a click event in JQuery mobile. I had this fully working DOM based game which has a start button to start game play. All I did for it not work is add references to JQuery mobile CSS and Javascript, and the following data-role attributes: page,header,content, and footer. After that the start button register but all of the which suppose to run on page load works.

Share this post


Link to post
Share on other sites

Why can't you just use the normal jQuery method for detecting clicks?

$('button#start').click(function () {    // Do stuff here});

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...