c# - jQuery Uncaught SyntaxError: Unexpected token ILLEGAL error on page load in Asp.Net -
as question speaks having trouble using jquery simple functions throwing uncaught syntaxerror: unexpected token illegal on page load , don't have enough knowledge of jquery solve such problems myself.
here details:
library on page head:
<script src="http://code.jquery.com/jquery-1.7.2.js" type="text/javascript"></script> <script src="http://code.jquery.com/jquery-1.7.2.min.js" type="text/javascript"></script>jquery popupwindow function:
<script type="text/javascript"> $(document).ready(function() { $('#<%=_btstrttest.clientid %>').click(function() { var nwin = window.open($(this).prop('href'), 'height=800,width=800'); if (window.focus) {<br/> nwin.focus(); }<br/> return false; }); }); </script>
fyi: not using asp.net mvc, plain asp.net c# , head coming master page while function in contentplaceholder of home.aspx page if helps.
thanks
delete invisible characters (whitespace) around area, give try.
i've seen error in safari when copy/pasting code. can pick invalid (and unfortunately invisible) characters.
used happen me lot when copying jsfiddle.
and add single jquery library file either full or min
Comments
Post a Comment