Category JQUERY
Download File Using URL On Same Page From Jquery/Javascript
August 3, 2017 Category: JAVA SCRIPT, JQUERY
Comments:
CasCading DropDownList using Generic Handler and JQuery in Asp.net
April 11, 2013 Category: ASP.NET, GENERIC HANDLER, JQUERY
Comments:
Regular Expressipn For Multiple Emails using Jquery
March 25, 2013 Category: JQUERY
Comments:
Sometimes we need to validate multiple email id’s using regular expression through JQuery
example is given below. Below example validating multiple email address on button click.
$(document).ready(function () {
var regExp = /^([\w+-.%]+@[\w-.]+\.[A-Za-z]{2,4},?)+$/; //Regular Expression
$(“input[id$=SendInvites]“).click(function () {
var valTag = $(“input[id$=txtEmailAddress]“).val();
if (!regExp.test(valTag)) {
alert(‘Invalid email address.’);
return false;
}
});
});
Numeric Validation using Jquery and Regular Expression
//Script For Check Validation
<script type=”text/javascript”>
jQuery(document).ready(function ($) {
var NumericPattern = /^([0-9])*$/;// Regular Expression For Numeric Only
$(“input[id$=btnAdd]“).click(function () {
var number = $(“input[id$=txtMobile]“).val().trim();
if (number == “”) {
alert(“Please enter mobile number”);
return false;
}
else (!NumericPattern.test(number)) {
alert(“Please enter numeric value.”);
return false;
}
});
});
</script>
//Controls in Design Page
<asp:TextBox ID=”txtMobile” runat=”server” ></asp:TextBox>
<asp:Button ID=”btnAdd” runat=”server” />
Display data on Click of Row in GridView using Jquery and Web Service in Asp.net
March 12, 2013 Category: ASP.NET, GRIDVIEW, JQUERY, WEB SERVICE
Comments:
Display data on Click of Row in GridView using Jquery in Asp.net
March 12, 2013 Category: ASP.NET, GRIDVIEW, JQUERY
Comments:
Automatically Small Letter Change to Capital Letter in Textbox using JQuery
<script type=”text/javascript”>
$(document).ready(function () {
//”txtFirstName” is textbox id
$(“input[id$=txtFirstName]“).keyup(function () {
$(this).val($(this).val().toUpperCase());
});
});
Automatically Capital Letter Change to Small Letter in Textbox using JQuery
<script type=”text/javascript”>
$(document).ready(function () {
//”txtFirstName” is textbox id
$(“input[id$=txtFirstName]“).keyup(function () {
$(this).val($(this).val().toLowerCase());
});
});