Few useful php functions in day today life..! /*This function strip html tags you want , Inside text area. In database those tags will not inserted */ function strip_only($str) { $tags = array('html','body','style','div', 'table','tr','td','script','img'); if(!is_array($tags)) { $tags = (strpos($str, '>') !== false ? explode('>', str_replace('#is', '', $str); return $str; } […]

Few useful php functions in day today life..!

$(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); […]

jquery validate addon functions

1 comment
Open Source, Open Sesame Rituparna Chatterjee from San Francisco tells us how making your software products free can possibly help you earn more profits despite all the bugs and challenges. Imagine what would happen if Coca Cola shared its secret formula, or a popular restaurant shared its secret sauce recipe. […]

Open Source, Open Sesame – Article from Todays ET

વાદળ પૂછે છે સાગર ને .. વરસું તારા પર કે કેમ ….? સાગર પૂછે છે રેતી ને .. ભીંજવું તને કે કેમ ……? રેતી મન માં રોઈ પડી … આમ કાઈ પૂછી પૂછી ને થતા હશે પ્રેમ…??? whats say..???

good quotes