Jump to content

jQuery click


Dan06

Recommended Posts

When a certain text is "clicked" a function is supposed to be called. Currently, when the text is clicked the function is not being called and I can't figure out why. Below is the html, css, and js.

 

 <div id="logout">Logout</div> 

 body #logout{
position: absolute;
top: 80px;
right: 15px;
cursor: pointer;
}

body #logout:hover{
position: absolute;
top: 75px;
right: 15px;
font: bold;
font-size: 14pt;
color:#FF0000;
cursor: pointer;
} 

 

 $("#logout").click(function() { logoutCheck(); }); 

 

Any thoughts?

 

Link to comment
Share on other sites

When a certain text is "clicked" a function is supposed to be called. Currently, when the text is clicked the function is not being called and I can't figure out why. Below is the html, css, and js.

 

 <div id="logout">Logout</div> 

 body #logout{
position: absolute;
top: 80px;
right: 15px;
cursor: pointer;
}

body #logout:hover{
position: absolute;
top: 75px;
right: 15px;
font: bold;
font-size: 14pt;
color:#FF0000;
cursor: pointer;
} 

 

 $("#logout").click(function() { logoutCheck(); }); 

 

Any thoughts?

 

 

What is logoutCheck supposed to do?

Link to comment
Share on other sites

logoutCheck determines if session variables that were set during login are still active and if so, unsets and then destroys them, logging the user out of the website. Once the session variables are unset and destroyed, logoutCheck sends the user to the main page.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.