javascript - all() function not working in Firefox -



javascript - all() function not working in Firefox -

in ie below line working . popup div element.

popup.all("submenu").innerhtml = "";

but in other browsers below error coming

popup.all not function.

is there alternative function in other browsers.

please suggest me. thanks.

try this:

var popup=document.getelementbyid('popup'); (i in popup.childnodes) { if (popup.childnodes[i].nodetype == 1) { popup.childnodes[i].innerhtml = ''; } }

javascript

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -