Solved

I'm getting a ) missing after argument list

Posted on 2014-07-19
3
242 Views
Last Modified: 2014-07-20
Hi - I have this code which is a DIV that I want to drop down after page load if the criteria is met but it doesn't seem to be working.  I would actually rather have that run from the body if there is specific criteria met.

$(document).load(function ( {
    $('#idflightdutylimitation').slideToggle();
});

Open in new window

0
Comment
Question by:zack4x4
3 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 450 total points
ID: 40206893
$(document).load(function () {
    $('#idflightdutylimitation').slideToggle();
});

Open in new window

0
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 50 total points
ID: 40207254
Any IDE with JavaScript syntax checker should catch this for you.  Some useful links:
http://www.jslint.com/
http://jsfiddle.net/
0
 
LVL 4

Author Closing Comment

by:zack4x4
ID: 40207853
I use Rapid PHP 2014 but I figured it out it was actually a problem with the code I had above this piece of code.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now