The begin of the form name is dynamic and end is referring to the field in the form.
ctl00_ctl40_g_e8523f46_e657_46ec_aa9d_f8a08c446642_FormControl0_V1_I1_PB27
Should be written like this
//clear department and phone
$('[id$="FormControl0_V1_I1_T26"]').val("");
$('[id$="FormControl0_V1_I1_T7"]').val("");
//clear department and phone
$('#ctl00_ctl40_g_84777929_920a_480e_81b1_1f2f20724097_FormControl0_V1_I1_T26').val("");
$('#ctl00_ctl40_g_84777929_920a_480e_81b1_1f2f20724097_FormControl0_V1_I1_T7').val("");
No comments:
Post a Comment