1. Playing with checkboxes:
To get all the checked checkboxes from a group use :
$("input.selectArticleCheckBox:checked");
2. To hide multiple elements in a screen with the same name use class instead of id:
$('tr.filterSection').show();
This shows all elements with class filterSection in a tr
3. Iterating through an array:
$.each(
articles,
function( intIndex, obj ){
alert(obj.value);
}
);
4. Check if element is visible: $('.classMessage').is(":visible")
5. Email validation using regex:
var regexEmail= /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z0-9]{2,4})$/;
if(!regexEmail.test(currentFieldValue)) { }
6. Manipulating select fields
7. Debugging jquery on stupid IE
Nice link here
More
Build your own jquery plugin tutorial
spring mvc with jquery ajax
restful spring mvc

To get all the checked checkboxes from a group use :
$("input.selectArticleCheckBox:checked");
2. To hide multiple elements in a screen with the same name use class instead of id:
$('tr.filterSection').show();
This shows all elements with class filterSection in a tr
3. Iterating through an array:
$.each(
articles,
function( intIndex, obj ){
alert(obj.value);
}
);
4. Check if element is visible: $('.classMessage').is(":visible")
5. Email validation using regex:
var regexEmail= /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z0-9]{2,4})$/;
if(!regexEmail.test(currentFieldValue)) { }
6. Manipulating select fields
$('#selectList').val();
$('#selectList :selected').text();7. Debugging jquery on stupid IE
//global catch all
function handleError(e){alert(’An error has occurred!\n’+e);return true;}window.onerror = handleError;
Use stacktrace.js as a life saviour : stactrace.js
Nice link here
More
Ref: Jquery cheat sheet : Build your own jquery plugin tutorial
spring mvc with jquery ajax
restful spring mvc
0 comments:
Post a Comment