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 3 of 3

Thread: boxes

  1. #1
    New Coder
    Join Date
    Feb 2007
    Location
    FL
    Posts
    35
    Thanks
    4
    Thanked 0 Times in 0 Posts

    boxes

    Hey I am trying to know what is the value of of a check box (true, or false)

    but i cant seem to get it write

    PHP Code:
    function getPrice(boxName){

        
    alert(form1.Soft_Top_Cloth.checked// Hard code box name it works
        
    alert(form1.boxName.checked// passed threw variable not working 


    PHP Code:
    <input type="checkbox" name="<%= boxName %>" id="<%= boxName %>>" onchange="getPrice('<%= boxName %>')" /> 

    Thanks for all the help

  • #2
    Regular Coder ohgod's Avatar
    Join Date
    Jun 2008
    Location
    Ohio
    Posts
    579
    Thanks
    6
    Thanked 69 Times in 69 Posts
    Code:
    id="<%= boxName %>>"
    you have 2 >'s. it's borking your id.

  • Users who have thanked ohgod for this post:

    moiseszaragoza (08-13-2009)

  • #3
    New Coder
    Join Date
    Feb 2007
    Location
    FL
    Posts
    35
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Thanks
    that was the problem


  •  

    Posting Permissions

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