Jquery Archive

Simple theme change using jquery

Simple theme change using jquery is a simple jquery code which will help to change background color of the page. It is simple theme changer jquery code.

Jquery Autocomplete with Ajax

Jquery Autocomplete with Ajax tutorial we will learn about  Autocomplete widgets which provides suggestions based on the typed values.

Bootstrap modal as confirm box

Bootstrap modal as confirm box in this tutorial we will use the bootstap modal same as confirm box javascript. We know that today bootstrap is most commonly used in the application.Bootstrap modal is a dialog box/popup window.

Get width of each div inside div using JQuery

Here we are calculating the calculate width of each div using jquery First of we create a <div class=”row”></div>.In this row div we add three different size div’ s and we want to calculate width of each div jquery inside the div.

Multiple class Selector in jQuery

In this tutorial we are going to learn about fire same event or activity on multiple lass selector.Here we have taken three class1,class2,class three and we click on each class separately and making toggle effect. Lets take the following example [crayon-5d86464e761b7421872755/]  

Getting all the elements from DOM using all selector jQuery

All selector jQuery $(“*”) selects each and every element from the DOM. The purpose of writing the post is select all the elements from the document and then traverse one by one and we can perform the operation on it.like suppose we want to delete all the div tag from the document then we can

Selecting all the element inside the document

The purpose of writing the post is select all the elements from the document and then traverse one by one and we can perform the operation on it.like suppose we want to delete all the div tag from the document then we can do that.

Detect pressing Enter on keyboard using jQuery

Detect pressing Enter on keyboard using jQuery is for checking enter key pressed or not. isEnterKey is plugin function which is bind to input element with #checkEnter.

JQuery hasAttr checking to see if there is an attribute on an element

JQuery hasAttr checking to see if there is an attribute on an element in this example we are developing a plugin function to check for has attribute.Here in this case we are checking for data-name attribute is belongs to the element or not.

Jquery getting ID of element on which event is fired

Jquery getting ID of element on which event is fired suppose we have Anchor tag has been clicked so we are checking which element was clicked.Here we can get the #id of target element.When element is clicked then event is fired so we check for id using event.target.id we get in alert “link”.