Here are the some Jquery important methods and functions:
1. Add html to div with jquery:
$("#divID").html("Html Added!!");
2. Disable Input Field:
$("#inputID").attr('disabled', 'disabled');
3. Email Pattern:
var pattern = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
4. Add Class To Div:
$("#divID").addClass("Added");
5. Input Field Empty or not:
$("input").val().length == 0;
1. Add html to div with jquery:
$("#divID").html("Html Added!!");
2. Disable Input Field:
$("#inputID").attr('disabled', 'disabled');
3. Email Pattern:
var pattern = /^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/;
4. Add Class To Div:
$("#divID").addClass("Added");
5. Input Field Empty or not:
$("input").val().length == 0;
No comments:
Post a Comment