javascript - Asp.net - Display hide table onclick Page_PreRender function -



javascript - Asp.net - Display hide table onclick Page_PreRender function -

i want display/hide table (asp.net application) based on user click.

i have used next code @ page_prerender function, working fine in ie, not in firefox , chrome. problem here no changes happening when click on chrome or firefox.

colourkey.attributes.add("rules","all"); colourkey.style.add("border-collapse","collapse"); colourkey.rows[0].style.add("cursor","hand"); colourkey.rows[0].attributes.add("onclick", "var display=this.parentelement.rows(2).style.display==''?'none':'';" +"for(var count=1;count<this.parentelement.rows.length;count++) " +"this.parentelement.rows(count).style.display=display;");

any idea?

javascript c# asp.net html-table

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -