Category: jQuery

How to use Ajax using jQuery in PHP?

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
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 c [...]

To remove class from a div at runtime using jQuery

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
In 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 [...]

To add class to a “Div with class” at runtime using jQuery

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
In 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 [...]

To add class to a “Div with id” at runtime using jQuery

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
In 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 [...]

Simple drop down menu with jQuery

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn
HTML Code Simple HTML code <div class=”dropdown“> <a class=”account” >My Account</a><div class=”submenu“> <ul class=”root“> <li ><a href=”#Dashboard” & [...]