Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help The N00b For the love of god elp !

    I have no clue waht i am doing can some one please tell me whats wroong with this and why ?

    Please

    ########################################

    <SCRIPT LANGUAGE=JAVASCRIPT>
    <!--
    function validateMyForm2 () {
    if(document.forms[0].addToCart2.quantity.value=> "1") {
    alert("Quantity Exceeds Stock ");
    return false;
    }else{
    return true;
    }
    }
    -->
    </SCRIPT>

  • #2
    Regular Coder
    Join Date
    Dec 2003
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Maybe you could post the form as well.

  • #3
    Regular Coder
    Join Date
    Dec 2003
    Posts
    100
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Or try using >= instead of =>.

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    You should also read our posting guidelines so you can name your thread properly in the future. You'll get more help when you use a title the clearly states the problem.
    OracleGuy


  •  

    Posting Permissions

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