hi can anyone help me,
My code successfully runs in client script->add/copy page->startup script.
but I put it on the edit page and I changed the event to onload and it didn't work.
I just changed the "change" event to "load"
this is the code:
$(document).ready(function(){
$("#r_id_mob").hide();
$("#r_km_st").hide();
$("#r_km_en").hide();
$("#r_km_tot").hide();
$("#x_pak_mob").on("load", function() {
var str = $("option:selected", this);
if (this.value == "1") {
$("#r_id_mob").hide();
$("#r_km_st").hide();
$("#r_km_en").hide();
$("#r_km_tot").hide();
} else {
$("#r_id_mob").show();
$("#r_km_st").show();
$("#r_km_en").show();
$("#r_km_tot").hide();
}
});
});