function to restrict text area character
function checkTextLength(obj,restrictLength,truncFlag) { if(obj.value.length>restrictLength){ if(truncFlag) obj.disabled = true; alert(“Text should not be more than ”…
Read Morefunction checkTextLength(obj,restrictLength,truncFlag) { if(obj.value.length>restrictLength){ if(truncFlag) obj.disabled = true; alert(“Text should not be more than ”…
Read Morefunction trim(sString) { sTrimmedString = “”; if (sString != “”) { var iStart = 0;…
Read Morefunction isValidCreditCard(cardNo) { var str=cardNo; var digitsOnly = str.replace(/ /g,”);//replace unwanted space var sum =…
Read More<?php class parseHTML { /** * HTML Form Parser * * @package HtmlFormParser * @version…
Read More<?php function get_time_differenceFromToday($fromDate) { $uts = strtotime( $fromDate );//date format YYYY-MM-DD HH:MM:SS $uts = time();//unix…
Read More