jquery show hide element

There is many way to show hide elements using jQuery. 1.$(“#yourElement”).show(); $(“#yourElement”).hide(); 2.$(“#yourElement”).toggle(); 3.$(“#yourElement”).css(“display”, “none”); $(“#yourElement”).css(“display”, “block”);

Read more

ajax username availability

How to check username availability in php jquery ?.You can check username availability using jquery ajax post request.You can also use ajax start,ajax stop and other ajax function.When ajax start you can show loading and when ajax request complete you can hide it.You can free to use this script and modify also. Jquery username check function <script type=”text/javascript”> $(document).ready(function() {

Read more

jquery date picker

Bydefault Jquery date picker come with Jquery UI and Jquery UI has lots of css and js file so it is not as easy to use jquery date picker.So here you will find full Jquery date picker only code with downloads.This date picker is extracted from Jquery UI so you can use seprate jquery date picker without using lots of

Read more

jquery radio button checked value

There are losts of way to get checked radio value.The easiest way is to use “:checked” selector.The checked selector is used to get checked radio.After getting it you can use is is(“:checked”) to check wather it is checked or not.For getting value you can use .val() function. var $n = jQuery.noConflict(); //Jquery no conflict $n(“#btnsubmit”).click(function() { var allRadio=$n(‘input[name=rdoarr[]]’); jQuery.each(allRadio, function(i,

Read more

Jquery get all checkboxes

You can get all elements by name var $n = jQuery.noConflict(); //Jquery no conflict $n(“#btnsubmit”).click(function() { var allChkbox=$n(‘input[name=chkarr[]]’); jQuery.each(allChkbox, function(i, singlecheckbox) { alert(singlecheckbox.value+” is “+ singlecheckbox.checked); }); });

Read more

jquery synchronous AJAX request

How to make synchronous ajax request using jquery Bydefault jquery ajax request is asynchronouse means execution of next code is continue whether or not your ajax request is complete or not. Create synchronous ajax request: For creating sync request you can use property async as false Cross-domain requests anddataType: “jsonp” requests do not support synchronous operation. Note that synchronous requests

Read more

get querystring using jquery

You can easily get query string values using jquery. Code $.urlParam = function(name){ var results = new RegExp(‘[\\?&]’ + name + ‘=([^&#]*)’).exec(window.location.href); if (!results) { return 0; } return results[1] || 0; } var yourQstring = $.urlParam(‘querystringname’); //$.urlParam() is array of query string

Read more