javascript - Twitter Bootstrap not working in IE 8 or IE 9 -
i confused why twitter bootstrap not working in internet explorer 8 or 9. working fine on other browsers including safari, firefox , chrome. have been debugging code through later version of internet explorer , have found error: script5009: '$' undefined. here code points to:
$('#mytab a').click(function (e) { e.preventdefault(); $(this).tab('show'); })
it said it's first line, first character. allows user click drop down jumbled , unreadable. using standard bootstrap javascript files. appreciated , please let me know if should provide more code.
here source code page:
<head> <script> jquery('#mytab a').click(function (e) { e.preventdefault(); jquery(this).tab('show'); }) </script> <script src="_internal/js/jquery.js" type="text/javascript" ></script> <script src="http://platform.twitter.com/widgets.js" type="text/javascript" ></script> <script src="_internal/js/bootstrap.js" type="text/javascript" ></script> <script src="_internal/js/bootstrap-transition.js" type="text/javascript" ></script> <script src="_internal/js/bootstrap.min.js" type="text/javascript" ></script> <script src="_internal/js/bootstrap-tab.js" type="text/javascript" ></script> <link href="_internal/css/bootstrap.css" rel="stylesheet" type="text/css" /> <link href="_internal/css/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-parent="#accordion2" data-toggle="collapse" href = "#collapsefive"> title goes here </a> </div> <div class="accordion-body collapse" id="collapsefive" style="height: 0px;"> <div class="accordion-inner"> <table cellpadding="15" summary="table"> <tbody cellpadding="4"> <tr class="table-row"> <td width="250">text</td> <td width="250">text</td> <td width="200">text</td> </tr> <tr> <td width="250"><a href="link" title="title">title</a></td> <td width="250">text/td> <td width="200">text</td> </tr> <tr> <td width="250"><a href="link">title</a></td> <td width="250">text</td> <td width="200">text</td> </tr> </tbody> </table> </div> </div> </div> </body>
use jquery()
instead of $()
. don't know why jquery isn't loading $()
selector, had issue other day , changing $()
selectors jquery()
fixed it.
Comments
Post a Comment