Enter text file allow allphabi & space only function alpha_space_validation(arg){ var valReg = /^[A-Za-z ]+$/; if(valReg.test( arg ) ) { return false; } else { return true; } }
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Wednesday, 25 June 2014
Alpha Space Validation in JS
Email Validation - Form field Validate Email Address
alert(email_validation("asasas")) function email_validation(arg){ var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; if( !emailReg.test( arg ) ) { return false; } else { return true; } }
PHP number format 4 digits [duplicate]
Method I
echo str_pad( "3", 4, "0", STR_PAD_LEFT );Input $s_number = "3"; Output: 0003
Method II
$s_number = '12';printf("%04d", $s_number);
Input $s_number = "12"; Output: 0012
Subscribe to:
Posts (Atom)
Feet/Inches to Meters Converter & Lbs to Kgs Converter
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Feet/Inches ⇄...
-
<?php $to = "somebody@example.com, somebodyelse@example.com"; $subject = "HTML email"; $message = " <h...
-
document.onkeydown = myKeyDownHandler; function myKeyDownHandler(event){ alert(event.keyCode) }
-
To Resolve above the issue use below this code $(function() { $('#calendar').fullCalendar('render'); });