Results 1 to 3 of 3

Thread: Needed: A button is grayed out until radio button or checkbox is checked

  1. #1
    Join Date
    Oct 2012
    Posts
    150
    Thanks
    18
    Thanked 1 Time in 1 Post

    Default Needed: A button is grayed out until radio button or checkbox is checked

    Hi,

    Just like the title says, I need a javascript code that will keep a "Submit" button grayed out (unclickable) until the person checks out either a checkbox or radio button (it's up to you which one you will choose - radio button or checkbox).

    I searched the internet up and down and couldn't find what I need.

    Thank you for your help!



    __________
    Last edited by qwikad.com; 03-05-2013 at 09:25 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    1,940
    Thanks
    16
    Thanked 304 Times in 303 Posts
    Blog Entries
    11

    Default

    A quick Google search pulled up plenty of options for me.

    There's this on DD: http://www.dynamicdrive.com/dynamici...acceptterm.htm

    This: http://www.techulator.com/forum/2537...it-Button.aspx

    Or with jQuery: http://jsfiddle.net/PZ6v5/1/

    For more scripts like this, try searching something like "accept checkbox before form submit".

    If none of these suit your needs, please describe what you're looking for in more detail.
    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    Oct 2012
    Posts
    150
    Thanks
    18
    Thanked 1 Time in 1 Post

    Default

    Quote Originally Posted by Beverleyh View Post
    A quick Google search pulled up plenty of options for me.

    There's this on DD: http://www.dynamicdrive.com/dynamici...acceptterm.htm

    This: http://www.techulator.com/forum/2537...it-Button.aspx

    Or with jQuery: http://jsfiddle.net/PZ6v5/1/

    For more scripts like this, try searching something like "accept checkbox before form submit".

    If none of these suit your needs, please describe what you're looking for in more detail.


    Thank you so much! I guess I used wrong keywords while searching. I am pretty sure that's what I need.

Similar Threads

  1. Radio Button Validation
    By MacRat101 in forum JavaScript
    Replies: 0
    Last Post: 02-09-2011, 10:14 PM
  2. Delete checked rows from Database on Click of button
    By MSK7 in forum MySQL and other databases
    Replies: 1
    Last Post: 04-13-2009, 12:58 PM
  3. Radio Button CSS
    By farmdve in forum CSS
    Replies: 10
    Last Post: 03-16-2008, 02:42 AM
  4. Grayed out Browse Table Button/phpmyadmin?
    By nagonavi in forum MySQL and other databases
    Replies: 5
    Last Post: 09-18-2006, 07:51 PM
  5. If radio button is checked show layer
    By sanjay_es in forum JavaScript
    Replies: 0
    Last Post: 11-14-2005, 05:52 AM

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
  •