I have a custom list I built using SharePoint Designer. Its a multi view form so I'm updating in a batch with one SAVE button. Unfortunately I have a dropdown list on each row and I want to hide a textbox on the same row if the user selects a value e.g
$(document).ready(function(){
$("select[title='Status']").change(function () {
var selectedValue = $("option:selected").val();
//alert(selectedValue);
if (selectedValue == 'Declined')
{
alert('Please add a Reason');
}
});
});
The dropdown does fire but the problem is it works well for only the first dropdowns.Is it possible to loop through all the dropdown list and then when selected get the specific item of that list and then do something for a textbox on that row. Thanks in Advance