Hi
I have dropdown with
Value = 0 as Accepted
Value = 1 as Rejected. If uers selects Rejected then user must enter Remarks in txtRemarks column
Thanks
Hi
I have dropdown with
Value = 0 as Accepted
Value = 1 as Rejected. If uers selects Rejected then user must enter Remarks in txtRemarks column
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Uttam KumarPosted Apr 12, 2022, 10:15 AM
Jignesh KumarPosted Apr 12, 2022, 10:13 AM
Hi Ramco,
Please try use this one,
$("body").on('change', "#dropdownAction", function () {
var Reason= $(this).val().trim() ;
if (Reason == '1')
{
alert("Please add reason to Rejected");
$("input[name = txtRemarks]").prop('required',true);
}
});