I'm a newbie to JQuery. I'm trying to add "input" tag to form in different select case.
$(document).ready(function() {
$("select[name=InputSource]").change(function() {
if (this.value == 3) {
eth_input = true;
$(".page_ip").attr("form", "broadcastform");
} else {
eth_input = false;
$(".page_ip").attr("form", "");
}
});
});
But attr seems not working for IE. I search for article that people suggest to use data-* with IE browser. But problem is that I still need to change "form" attribute in order to make this input into the form. Is there anyway to apply attr to change "form" attribute?