Add Prefix in text field
When you have to prefix any hard coded value in a text field, like for…
Read MoreWhen you have to prefix any hard coded value in a text field, like for…
Read More<script type=”text/javascript”> var formChanged = false; jQuery(window).load(function() { // This is triggered when the entiire…
Read MoreI want to trigger an event every time i click on select on any element…
Read Morefunction makeAjaxRequest(data1,data2,.....,datax){ $.ajax({ 'type':'POST', async: false, url: 'http://www.example.com/some_request_url', data:{param1:data1,param2:data2,....,paramx:datax}, success : function(response) { console.log(response); //…
Read MoreUsually when we try to submit the form after ajax call on success response, the…
Read Morefunction validateEmail(email) { var emailReg = /^(+@(+\.)+{2,6})?$/; return emailReg.test(email); } Usage:- if(validateEmail(emailString)){ alert('Your email is…
Read MoreFirst add the custom method to the validation library as below. Can you put this…
Read More<script type="text/javascript"> function isValideDate(datavalue){ var regexValidDate = /^(?:(0|1)(0||3)(19|20){2})$/; return regexValidDate.test(datavalue); } var dateToCheck = '06/01/2011',…
Read More<html> <body> <h1>Welcome to my Website</h1> <h4 id=”msg”>You will be redirected to another page in…
Read MoreHow to validate and restrict unwanted character for mobile or phone number field using jquery…
Read More