Change color of fields. Select all fields of a class
Thank you. I used almost the same code as you provided.
$.each($('[fd_name]'), function() {
if ($(this).find('.required').length > 0 ) {
if (alertMessage == undefined) {
alertMessage = "Please fill in the following fields: \n";
}
if (fd.field($(this).attr('fd_name')).titleText() == "") {
alertMessage += i + ": marked with the red asterix or red dotted border \n";
} else {
alertMessage += i + ": " + fd.field($(this).attr('fd_name')).titleText() + "\n";
}
i++;
}
})
With css for the dropdowsn , adding the !important; did the trick
$.each($('[fd_name]'), function() {
if ($(this).find('.required').length > 0 ) {
if (alertMessage == undefined) {
alertMessage = "Please fill in the following fields: \n";
}
if (fd.field($(this).attr('fd_name')).titleText() == "") {
alertMessage += i + ": marked with the red asterix or red dotted border \n";
} else {
alertMessage += i + ": " + fd.field($(this).attr('fd_name')).titleText() + "\n";
}
i++;
}
})
With css for the dropdowsn , adding the !important; did the trick
-
- Information
-
Who is online
Users browsing this forum: No registered users and 25 guests