skip to Main Content

return The Id of selected button – Jquery

Hi there I have the following card that has 3 selectable buttons button. <ul class="nav nav-tabs border-0" role="tablist" id="FlightType" onclick="SelectedFlightType()"> <li class="nav-item"> <button class="nav-link active" id="oneway-tab" data-bs-toggle="tab" data-bs-target="#oneway" type="button" role="tab" aria-controls="oneway" aria-selected="true"> <span class="d-inline-block icon-20 rounded-circle bg-white align-middle me-2"></span>One-way </button>…

VIEW QUESTION

how to show checkbox as checked in jquery

enter image description here $(document).ready(function() { $('.editbtn').on('click', function(){ $('#editmodal').modal('show'); $tr=$(this).closest('tr'); var data= $tr.children("td").map(function(){ return $(this).text(); }).get(); console.log(data); $('#update_id').val(data[0]); $('#finame').val(data[1]); $('#liname').val(data[2]); $('#Eimail').val(data[3]); $('#ContactNumber').val(data[4]); $('#Giender').val(data[5]); $('#Dob').val(data[6]); $('#addriess').val(data[7]); $('#Ciity').val(data[8]); $('#pinicode').val(data[9]); $('#stiate').val(data[10]); $('#countiry').val(data[11]); $('#HobbyiDrawing').each(function(){ this.checked = true; }); $('#HobbyiDrawing').each(function(){ this.checked = false; }); //…

VIEW QUESTION
Back To Top
Search