This is a part of my script using jQuery.
jQuery(".disabableInputField").addClass("disabledInputField");
cstaIpVal[0] = jQuery("#private-circuit-to-csta-subnet").val();
cstaIpVal[1] = jQuery("#private-circuit-to-csta-subnet\\.netmask").val();
jQuery("#private-circuit-to-csta-subnet\\.netmask").val("");
jQuery("#private-circuit-to-csta-subnet").val("");
jQuery(".disabableInputField").attr("disabled",true);
jQuery("#private-circuit-to-csta-subnet\\.netmask").prop("path", "");
jQuery("#private-circuit-to-csta-subnet").prop("path","");
The question is, why the combination of calling prop and attr doesn't work. If I call attr("disabled",true)
then the property set prop("path","")
does not work. When I switch the order, then attribute set does not work. I can not achieve setting disabled attribute via prop. How can I combine attr and prop calling? Or how can I set disabled attribute of html element via prop calling?
Thank you.
prop
is fordisabled
,attr
is for custom attributes (path
) – hindmost