This article mainly shares with you how Jquery sets the disabled attribute of attr to control the display or hiding of a row. If you like it, you can refer to setting the disabled attribute of attr to control the display or hiding of a row.
// Load the billing item drop-down box function loadChargeItemsSelect (status) {$ ("# settlementDetailInfo "). find ("tr [trflag = trflag]" inline ($ ("# chargeItemsDiv" inline .html (); var eachChargeItemId = $ (this ). find ("input [name = eachChargeItemId]"). val (); $ (this ). find ("select [name = chargeItemsId]"). val (eachChargeItemId); if (status! = "HWMBS01") {$ (this ). find ("select [name = chargeItemsId]"). attr ('Disabled ', 'Disabled'); $ (this ). find ("input [name = price]"). attr ('Disabled ', 'Disabled'); $ (this ). find ("input [name = quantity]"). attr ('Disabled ', 'Disabled'); $ (this ). find ("input [name = paidinSubtotal]"). attr ('Disabled ', 'Disabled ');}});}