Right,
I have the following code, which I like to .change when the dropdown is == Recipient
How do I filter the var CollectedBy based on the selection?
NWF$(document).ready(function(){
var CollectedBy = NWF$(".CollectedByClass");
CollectedBy.change(function(){
NWF$(".CollectedByUserClass").val('Testing');
});
});Scenario:
If dropdown == Recipient then update .CollectedByUserClass to "Test1"
If dropdown == Somebody else then update to "Test2"
If nothing is selected then leave the field "blank".
I am getting frustrated over this ... can't find a reliable page on here which helps me in establishing it.



