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
https://forums.phpfreaks.com/topic/135241-jquery-click/
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
https://forums.phpfreaks.com/topic/135241-jquery-click/#findComment-704424
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.