I am adding a button to a form, and having really weird problems in IE 7.
This code:
Renders a textbox ????? While it renders a button that works fine in firefox.
While this code
Renders a button in both IE and firefox, but the onclick event is not firing in IE. (tried both "onclick" and "onClick".
Has anyone run across this? I'm at a loss with a deadline tomorrow, if anyone can help, it's sure appreciated.
Thanks.
This code:
Code:
var locker = document.createElement("input");
swatch.appendChild(locker);
locker.setAttribute("type","submit");
locker.innerHTML="Add To My Locker";
locker.setAttribute("class","btn");
locker.setAttribute("id","btnSubmit");
locker.setAttribute("onClick","return setItem()");
locker = swatch.appendChild(locker);
Renders a textbox ????? While it renders a button that works fine in firefox.
While this code
Code:
var locker = document.createElement("button");
swatch.appendChild(locker);
//locker.setAttribute("type","submit");
locker.innerHTML="Add To My Locker";
locker.setAttribute("class","btn");
locker.setAttribute("id","btnSubmit");
locker.setAttribute("onClick","return setItem()");
locker = swatch.appendChild(locker);
Renders a button in both IE and firefox, but the onclick event is not firing in IE. (tried both "onclick" and "onClick".
Has anyone run across this? I'm at a loss with a deadline tomorrow, if anyone can help, it's sure appreciated.
Thanks.