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 6696745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:22:40+00:00 2026-05-26T06:22:40+00:00

im trying to uncheck programaticaly a checkbox while in a change event: $(#target).change(function() {

  • 0

im trying to uncheck programaticaly a checkbox while in a change event:

  $("#target").change(function() {

      $("#hide_image").attr('checked', false);  //nor working




  $.ajax({
  url: "evenements_admin_ajax.php?action=edit_evenement",
  data: "id="+this.value,
  success: function(html){
    response= html.split("|");
     $("#evenements_nom").val(response[0]);
    $("#date_debut").val(response[1]);
      $("#date_fin").val(response[2]);
      $("#desc_evenement").val(response[3]);
         $("#thumbnail").html(response[4]);
       }
    })
})

HTML:

<select name="id" id="target">
<option value="not">choisir un événement</option>
<?php
$h=mysql_query("select evenements_id, evenements_nom from evenements");
 while($hr=mysql_fetch_array($h)){
?>
<option value="<?php echo $hr["evenements_id"]; ?>" <?php if($_POST["id"]==$hr["evenements_id"] and $_POST["modifier_evenement"]) echo 'selected="selected"' ?> ><?php echo $hr["evenements_nom"]; ?></option>

 <?php } ?>
</select>

thanks for your help

  • 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-05-26T06:22:40+00:00Added an answer on May 26, 2026 at 6:22 am

    If your using jQuery 1.6+ then you should be using the prop() method

    $("#hide_image").prop('checked', false);
    

    If using jQuery lower than 1.6 then you could use the following

    $("#hide_image").attr('checked', 'checked');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a check/uncheck all CheckBox for a number of CheckBoxes that
Guys im trying to check/uncheck a checkbox based on the state check/uncheck of another
I have been trying to use jQuery to uncheck the checkbox if value is
I am trying to check and uncheck an <input type=checkbox /> by adding and
I am trying to allow a click function if the user has checked a
I am trying to create a functionality that check and uncheck the checkbox on
I'm pulling my hair out trying to get a jQuery script working that will
I'm trying to setup a click event on a div, and I would like
I'm wondering if there is a way in jQuery to check/uncheck a checkbox when
I'm currently working on a Google Maps project and am implementing a search function.

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.