Solved

I'm getting a ) missing after argument list

Posted on 2014-07-19
3
253 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 109

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

831 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