Hi,
Application Express 5.0.4.00.12
Oracle 12c
Very little things but struggling.
I have a form and region for create / Amend a form. I have few items in it including text and LOV. I am trying to validate the null values before submit using the below code but it does not work.
please note: if I use, if ($('[name="p_t+[i]"]').val() === '') { i from loop then it does not work or i am not doing in right way.
if use p_t13 or any other name such p_t14 so on then it work. Please help.
$('#create_btn').click(function() {
for (i=13;i<30;i++) {
if ($('[name="p_t13"]').val() === '') {
$('[name="p_t13"]').css('background','#FFD8B5');
}
if ($('[name="p_t13"]').val() != '') {
$('[name="p_t13"]').css('background','');
}
}
});
Many thanks,
IR