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

Get div attribute value in input value and change in source – Jquery

I need show my newprice="" in input value, and in source. $(".uzmi").on("click", function(e) { $("inid").val($(this).attr('newprice')); }); <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <div data-value="VALUE 1" class="uzmi product-variation-colors__item helmet-variations" id=" " codeproduct=" " newprice="6043" variation_id="1407" change_img(0) "> Div 1</div> <div data-value="VALUE 1 " class="uzmi product-variation-colors__item…

VIEW QUESTION
Back To Top
Search