How to use Ajax using jQuery in PHP? Firstly, you have to include the <script src=”https://code.jquery.com/jquery-1.12.0.min.js”></script> before </head> Or use the latest jQuery version as required. Then, use the main content of the page as below code: <div id=”content”> <ul> ...
phpsupport | phpsupportdesk Latest Articles
To remove class from a div at runtime using jQuery
pHpSupportIn this post you will learn how to remove class from a div at runtime using jQuery. As far as removing div at runtime is concerned, we are to deal with two functions: jQuery.toggleclass() and jQuery.switchclass() functions. jQuery.toggleclass(): This function ...
To add class to a “Div with class” at runtime using jQuery
pHpSupportIn this post you will learn how To add class to a div with class at runtime using jQuery. Please check the code given below. This will help. HTML Code <!doctype html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”Generator” content=””> ...
To add class to a “Div with id” at runtime using jQuery
pHpSupportIn this post you will learn how To add class to a div with id at runtime using jQuery. Please check the code given below. This will help. HTML Code <!doctype html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”Generator” content=””> ...
Simple drop down menu with jQuery
pHpSupportHTML Code Simple HTML code <div class=”dropdown“> <a class=”account” >My Account</a><div class=”submenu“> <ul class=”root“> <li ><a href=”#Dashboard” >Dashboard</a></li> <li ><a href=”#Profile” >Profile</a></li> <li ><a href=”#settings“>Settings</a></li> <li ><a href=”#feedback“>Send Feedback</a></li> </ul> </div></div> JavaScript Contains javascipt code. $(“.account”).click(function(){}– account is the ...