• Home
  • Jobs
  • Courses
  • Questions
  • Teachers
  • For business
  • ES/EN

0

30
Views
select dropdown does not enable in edit page when the checkbox get auto selected in edit page
<script type="text/javascript">
$(document).ready(function() {
    $(".ship_to_checkbox").change(function() {                
        var ch = this.checked;      
        if (this.checked) {
            $("#mj").prop('disabled', false);
        } else {
            $('#mj').prop('disabled', true);
        }
    });
});
});
</script>

here is my checkbox code

<section>
    <input type="checkbox" class="ship_to_checkbox" 
            name="ship_to_checkbox" 
            value="Yes" {if $ship_check_result['ship_check']=="Yes"} checked="checked" : ""{/if}>
    <label style="font-weight: 400;">Ship to</label>
</section>
about 2 months ago ·

Juan Pablo Isaza

Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.