Jquery / Javascript execute, but do nothing -


i'm executing javascript/jquery, doesn't nothing.

this code:

        function ocultagrid(idpanel) {             var idpnl = '#' + idpanel              $(idpnl).toggle();              alert("batman");         } 

the alert runs okay, toggle not.

here call js:

panel panelgrid = new panel(); panelgrid.id = "panel_grid" + i;  linkbutton lkbtn = new linkbutton(); lkbtn.id = "link_button" + i; lkbtn.text = "+"; lkbtn.attributes["onclick"] = "javascript:return ocultagrid('" + panelgrid.id + "'), false"; 

ps.: jquery version 1.7.2

any idea, why it's not working?

thanks in advance.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -