Form Validation Multidimensional Select Boxes
This is the screenshot of the work. The Colors dropdown have sub colors. Now the name of colors is color[]. For this case you can see that there are 3 colors. 1st color have 1 sub
Solution 1:
jQuery:
$('select[name^="color["]').each(function() {
if ($(this).val()=="SELECT") {
alert(this.name.replace(/[^color0-9]/gi," ")+"is not selected");
return false;
}
});
Post a Comment for "Form Validation Multidimensional Select Boxes"