Hello all
i am tring to use this code to change the caption of one field conditionaly depends of the value of combobox but it is not working. is there any hints please
i put the code on startup script
$(document).ready(function() {
// Attach change event handler to the combobox
$("#b_name").change(function() {
var selectedValue = $(this).val(); // Get the selected value
// Conditionally change the label based on the selected value
if ((selectedValue === "v1")||(selectedValue === "v2")) {
$("#myLabel").text("New Label Name");
}
});
});