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

  • SEARCH
  • Home
  • 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 8585775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:09:02+00:00 2026-06-11T22:09:02+00:00

Please check above link.There is a note *Please agree to the Privacy Policy and

  • 0

Please check above link.There is a note “*Please agree to the Privacy Policy and Disclaimer” I want to show this note onclick of button but only if I have checked “I have read and agree to the Privacy Policy and Disclaimer” this checkbox.At first I want to hide that note.I want to show that note onclick of button only when I have not checked that checkbox.Please advise…

Here is my code.

    $('#newprivacy').css('color','#ff0000');
 $('#newprivacy').hide();
 $('#btnContinue').click(function(e) { 
if(!document.getElementById('privacypolicy').checked) { 
// checkbox not checked e.preventDefault(); $('#newprivacy').show(); } else { 
$('#AccountSettingsForm').submit(); 
} });
 $('#privacypolicy').click(function(){ 
if ($('#privacypolicy').is(":checked")) {
 $('#newprivacy').hide();

     } });   } 

Its not working on chrome and IE why?

  • 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-11T22:09:03+00:00Added an answer on June 11, 2026 at 10:09 pm

    The majority of the functionality seems to be there, you just need to disable the button again if they uncheck the checkbox after checking it. I’ve made a few changes to your code below, namely:

    1. Using the change event on the checkbox rather than the click event, this way it will still fire if they use their keyboard to change its state.
    2. Using this to refer to the checkbox in the event handler function, rather than selecting it again, and accessing the checked property directly on the element, rather than using the jQuery .is() function.
    3. Using the .prop() function rather than the .attr() function to modify the disabled property of the button.

    jQuery code:

    $("#btnContinue").prop("disabled", true);
    $('#newprivacy').css('color', '#ff0000');
    $('#privacypolicy').change(function() {
        if (this.checked) {
            $('#newprivacy').hide();
            $("#btnContinue").prop("disabled", false);
        }
        else {
            $('#newprivacy').show();
            $('#btnContinue').prop('disabled', true);
        }
    });
    

    I’m assuming the above code is either included in a $(document).ready() call or located at the end of the page, so that the elements are available when the code executes.

    Note that the effects of the first two lines could also be achieved using HTML, saving the need to hide and color them using jQuery or JavaScript code.

    And, if you really want to completely replace that logic with a click event handler on the button, this should do it:

    $('#btnContinue').click(function(e) {
        if(!document.getElementById('privacypolicy').checked) {
            // checkbox not checked
            e.preventDefault();
            $('#newprivacy').show();
        }
        else {
            $('#AccountSettingsForm').submit();
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Backup Script Please check the link above, I wrote this small script in python.
For eg, I have to set the text as setText(Please check this link for
http://jsfiddle.net/hERrX/ input{ padding:1%; } input#checking{ padding-left:40px; } Please Check the above link in FIREFOX
http://indivar.us/ptcnews/ PLease check the above link. The first 3 menus in red does not
Please check out http://rainsongmanchesters.net/news.htm and notice the black strip above the header image. Now
Please check this code out it compiles and runs absolutely fine.. The question is
Please see the following link structure http://stackoverflow.com/questions/10672712/voting-system-like-stackoverflow In the above link the 10672712 is
First of all, please check this fiddle . The gif image and the text
I have a scrolling pane div with overflow:hidden. Please check it here . There
Please check this example: http://jsfiddle.net/lulu2792/a9LZd/ I use innerHTML to set a table row content

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.