Posts Tagged ‘jQuery’:


JQuery , Loader In Middle of any element

Here is Demo Code for JQuery , Loader In Middle of any element Special Thanks to Mr. Anand Dhungav for his efforts here , to make this code.

jquery validate addon functions

$(document).ready(function(){ jQuery.validator.addMethod( “intgrt0″, function(value, element) { return value.match(/^([1-9]{1}[0-9]*)$/); }, “Please enter a quantity greater then 0 & it should not start with 0″ ); /*email*/ jQuery.validator.addMethod( “emailproper”, function(value, element) { return value.match(/^[A-Za-z0-9]+\w*([\.-]\w+)*@\w+([\.][A-Za-z0-9]{2,3})+$/); }, “Please enter proper email like abc@domain.com” ); /*Letters only*/ jQuery.validator.addMethod(“lettersonly”, function(value, element) { return this.optional(element) || /^[a-zA-Z\s]+$/i.test(value); }, “Please enter Characters only”);

(Read More…)

JQuery is not working in wordpress – Solution

Recently i have seen some error in jQuery on WordPress 3.2.1. Inside theme folder on header.php if i add $(document).ready(function(){ alert(‘Pragnesh Karia’); }); Woilaa…..No alert found. I have searched on google i found error was due to ‘$’. closed. That’s it. In WordPress, the$() syntax is always used by other scripting library(Like prototype etc ),

(Read More…)

© Open Source Rocks