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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 12, 2022, 6:13 AM EDT
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);
}
});
Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 12, 2022, 6:15 AM EDT