html - jQuery not loading in asp.net page -
i making asp.net page in sharepoint 2010, , trying load jquery files.
near top of page have this:
<sharepoint:cssregistration id="jquery_css" name="/_layouts/pdf library/blitzer/jquery-ui-1.10.3.custom.min.css" runat="server" enablecsstheming="true" after="true" /> <sharepoint:scriptlink id="jquery_js" name="/_layouts/pdf library/jquery-2.0.0.min.js" runat="server" ondemand="false" localizable="false" /> <sharepoint:scriptlink id="jquery_ui_js" name="/_layouts/pdf library/jquery-ui-1.10.3.custom.min.js" runat="server" ondemand="false" localizable="false" />
and near middle of page have this:
<asp:panel id="help_panel" runat="server"> click <a href="#" onclick="$(this).next().slidedown();" title="click show details">here</a>. <div style="display:none"> <ol> <li>1</li> <li>2</li> <li>3</li> <a href="#" onclick="$(this).parent().parent().hide();" title="click hide details">hide details</a> </ol> </div> <br/> </asp:panel>
when asp.net page loads in ie9, , when click link display div tag, not work, error message the value of property '$' null or undefined, not function object
.
however if check developer tools, see jquery , css files there. yet link doesn't work. maybe files being loaded after link gets processed?
does know how fix this?
thanks.
Comments
Post a Comment