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: Lock select box

  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lock select box

    I have select box. After selecting the value. Onblur I want to lock this select box. So that user cannot change again. IS it possible?

    <select name="type" size="1">
    <option value = "01">01</option>
    <option value = "02">02</option>
    <option value = "03">03</option>
    </select>
    sridhar konkala

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    This could really piss some people off:

    <select name="type" size="1"
    onchange="this.locked=true;this.blur()"
    onfocus="if(this.locked)window.focus()">
    <option selected="selected">choose</option>
    <option value="01">01</option>
    <option value="02">02</option>
    <option value="03">03</option>
    </select>

    ...don't mention my name...

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Minneapolis
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This could really piss some people off in the event they prematurely select an option they really didn't want...


  •  

    Posting Permissions

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