www.webdeveloper.com
Results 1 to 2 of 2

Thread: code not working

  1. #1
    Join Date
    Jan 2013
    Posts
    1

    Exclamation code not working

    I can not get my jQuery function to work for some reason.. its purpose is when a button is clicked it will toggle hide/show an iframe

    Code:

    http://jsfiddle.net/darego/Z62P7/2/

    Cheers for the help

  2. #2
    Join Date
    Aug 2008
    Location
    Sweden
    Posts
    227
    The elements does not exist when you're calling hideToggle. Executing your code when the page has finished loading will fix it.

    Code:
    $(document).ready(function(){
        // your code here...
    });

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles