hello everyone,
On my page i have 3 fields . I am working on MVC:
1) Category Dropdown (Categories such as Milk, Tea Powder, Paper Cup..etc)
2) Quantity Textbox
3) PriceTextbox
For Eg : When Milk category is selected, I will enter 50L as quantity and it should auto bind 1000 in Price textbox
it should be only when MILK category is selected in dropdown.
Thank you in advance

Uttam KumarRank #1,076 · 1.8K reputationPosted Apr 13, 2022, 2:51 AM EDT
You need to write text change event in jQuery on quantity textbox.
$("quntity_textbox").change(function(){ if($("ddl_category").val() == "Milk"){ //calculte calculatedValue = 1000; $("#price_textbox").val(calculatedValue); } });Asma KhalidRank #160 · 14.7K reputationPosted Apr 13, 2022, 1:41 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 13, 2022, 1:59 AM EDT
Sushant TorankarRank #3,026 · 476 reputationPosted Apr 13, 2022, 2:41 PM EDT