Convert javascript function to jquery
Dear Group Members,
I am a beginner of jquery. And I would like to ask for help to convert
from javascript function to jquery by the code below (my problems is
checkbox array):
function returnDelete() {
$check = 0;
with (document.standardView) {
for (var i=0; i < elements.length; i++) {
if ((elements[i].type == 'checkbox') && (elements[i].checked ==
true)){
$check = 1;
}
}
}
if ( $check == 1 ){
document.standardView.delState.value = 'DeleteMode';
document.standardView.pageNO.value=1;
document.standardView.submit();
}else{
alert("please select at lease one!");
}
}
I hope everyone can help me.
Best regards,
Romeo
--