Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9235185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:58:01+00:00 2026-06-18T06:58:01+00:00

So I have this basic form <form id=order action=contact.php method=post> <p>Your name: <span><input type=text

  • 0

So I have this basic form

<form id="order" action="contact.php" method="post">
    <p>Your name: <span><input type="text" name="name" id="fname"></span></p>
    <p>Your e-mail: <span><input type="text" name="email" id="femail"></span></p>
    <p><input type="checkbox" value="1" name="tos" id="ftos"></p>
    <p><input type="submit" value="Send" id="fsubmit"> | <span><input type="reset" value="Clear"></span></p>
</form>

All I want is to make the submit button a little bit faded and un-clickable if the TOS checkbox is not checked.

if the checkbox is check, then the button will unfade and become clickable.

I am not really good on jquery but I believe it can be accomplish on Jquery.

I hope anyone could help me.

Regards,
Ken

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:58:02+00:00Added an answer on June 18, 2026 at 6:58 am

    here it is… Fiddle Example

    HTML:

    <form id="order" action="contact.php" method="post">
        <p>Your name: <span><input type="text" name="name" id="fname"></span></p>
        <p>Your e-mail: <span><input type="text" name="email" id="femail"></span></p>
        <p><input type="checkbox" value="1" name="tos" id="ftos"></p>
        <p><input type="submit" value="Send" id="fsubmit"> | <span><input type="reset" value="Clear"></span></p>
    </form>
    

    JS:

    function checkTOS() {      
        var checkbox = $("#ftos").is(':checked');
    
        if (checkbox === true) {
           $("#fsubmit").prop("disabled",false);
        } else {
           $("#fsubmit").prop("disabled",true);
        }
    
    }
    
    jQuery(document).ready(function(){   
         checkTOS();
        $('#ftos').click( function() {
            checkTOS();
        });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably a basic html/css question... I have a simple one-button form that
I have a basic form on my site with fields like name, email etc.
I have put together a basic order list for admin users in php for
I have this basic Drupal scenario and question: I have a form which accepts
I have this basic example: <!doctype HTML> <html> <head> <script src=jquery-1.4.2.min.js type=text/javascript></script> <script> $(document).ready(function(){
Hi I have this basic random quote script, but I would like it to
I have a js.erb with this basic content: $(#currencies).html(<%= options_for_select([['Dollar', '$']])%>); And the html
So I have this page that has some basic custom tabs: http://demo.unlockedmanagement.com/users/view/2 * NOTE
I have this table, which can be seen as a basic custom gantt chart:
Basic C# syntax question: So I have this class public class BrandQuery<T> : Query<T>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.