Superfish and jscript runtime error
I am getting a runtime error when using the superfish code. It specifically says: Microsoft JScript runtime error: Object expected. I didn't create the original code, but am maintaining it and am new to programming. Here's the two code snipits of where the error occurs.
- $(document).ready( function() {
- $( 'ul.sf-menu' ).superfish({
- hoverClass: 'sfHover',
- speed: 'fast',
- dropShadows: false,
- autoArrows: false
- });
- });
And it also stops here:
- $(document).ready( function(){
- $("#ctl00_MainContent_txtKeyword").live('keyup', function() {
- $("#ctl00_MainContent_ddlResearcher").get(0).selectedIndex = -1;
- $("#ctl00_MainContent_ddlResearchTopic").get(0).selectedIndex = -1;
- });
- $("#ctl00_MainContent_ddlResearchTopic").live('change', function() {
- $("#ctl00_MainContent_txtKeyword").val("");
- $("#ctl00_MainContent_ddlResearcher").get(0).selectedIndex = -1;
- });
- $("#ctl00_MainContent_ddlResearcher").live('change', function() {
- $("#ctl00_MainContent_txtKeyword").val("");
- $("#ctl00_MainContent_ddlResearchTopic").get(0).selectedIndex = -1;
- });
- });