SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript syntax error

    Code:
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"> </script>
    
    <script type="text/javascript">
    var hdnClassificationNameElements;
    var hdnIsApproveEnabledElements;
    $(document).ready(function(){
    hdnClassificationNameElements= $(".hdnClassificationNameClass");  //All elements with class="class3"
    hdnIsApproveEnabledElements= $(".hdnIsApproveEnabledClass");  //All elements with class="class4"
    });
     
    </script>

    browser says Syntax error at BOLD Line , char 1 , Syntax error

    I don't see any error there . Do you see anything wrong here ?

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I can't see a problem with it. If you're using IE as your browser for testing this, I'd strongly urge you to use something else. IE's javascript errors are notoriously unhelpful.

    You're better off using something like Firebug (with Firefox). Perhaps the error is to do with something else, but you need to get a clearer error before you can see what the problem is.


Bookmarks

Posting Permissions

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