Browsing:

Category: Jquery

MooTools the Compact Framework for JavaScript

mootools javascript

The MooTools framework is a compact and modular set of tools for professional developers in JavaScript that stands out for its application possibilities thanks to an elegant and well-documented group of APIs and for being object-oriented. MooTools offers the developer several functions and classes to facilitate the programming and design of modern web projects and greatly simplify the work process. In addition, its modular design makes it scalable. Additionally, the Read more…


Detecting Mobile Devices with JavaScript

Detection of mobile device concept of feature detection over browser detection, sometimes we need for knowing whether we are on mobile device or other Device. I thought out a simple way to detect the user was on a mobile device, then swap out the class name of an element. Why we need to check user is on mobile device : 1.Targeting Mobile Devices 2.Testing Mobile Device Functionality in Different Browsers Read more…


Check Object is empty in Javascript

Check Object is empty in Javascript if an object is empty in JQuery we use jQuery.isEmptyObject( object ) with will return true on success , false on failure. Example :

    To check if an object is empty or not using Javascript we use Object.getOwnPropertyNames() .The Object.getOwnPropertyNames() method returns an array of all properties (enumerable or not) found directly upon a given object.

  As a function Read more…


Remove Whitespace from String using JQuery

JQuery provides trim method We can use the jQuery $.trim() function to remove all spaces (including non-breaking spaces), newlines, and tabs from the beginning and end of the specified string. However the whitespaces occurs in the middle of the string are preserved. The trim() method does not change the original string. Trim function only removes spaces from starting and end of the string. If there are any space between middle Read more…


How to check / uncheck all check boxes using jQuery?

How to check / uncheck all check boxes using jQuery? We have noticed select/deselect functionality in the wordpress admin dashboard basically which allows you to select all posts on the page with single click. Which can be convenient to have check / uncheck multiple checkboxes with single click especially if the list is long. Here is the code snippet: HTML: <ul class=”chk-box”> <li><input id=”selecctall” name=”select” type=”checkbox” /> Selecct All</li> <li><input Read more…