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
Post a Comment