Solved

I'm getting a ) missing after argument list

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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…

828 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