skip to Main Content

How to target value of a checkbox inside a div using jQuery?

This is the code - <div class="filter-box" id="categoryFilter"> <input type="checkbox" id="3" name="Education" value="3"> <label for="Education">Education</label> <input type="checkbox" id="12" name="Employment" value="12"> <label for="Employment">Employment</label> <input type="checkbox" id="5" name="Goods and Services" value="5"> <label for="Goods and Services">Goods and Services</label> </div> I need to target…

VIEW QUESTION

Partial view jQuery script is not working in Mvc Core

This Partial view: @model SetIsApprovedModel <form id="frmApprove" data-ajax="true" data-ajax-method="post" data-ajax-url="@(Url.Action("SetApprove", "AccountAdmin"))" data-ajax-success="onsuccess" data-ajax-mode="replace" data-ajax-update="#approvePartial" data-ajax-loading="#loadingApprove" data-ajax-failure="failed"> <input type="hidden" asp-for="@Model.UserName" /> <div class="row px-3 mb-1"> <div class="col-md-5 text-md-end fw-bold">Approved: </div> <div class="col-md-7 text-md-start" id="IsApprovedDiv"> <input id="chkApprove" type="checkbox" asp-for="@Model.IsApproved" /> </div> <input…

VIEW QUESTION

Resize with JavaScript (JQuery)

I want to resize multiple boxes together using javascript or jquery. For this purpose, I wrote a code that changes the size of the desired box by adding or removing the class. The code I wrote works correctly but the…

VIEW QUESTION

Jquery – How to hide all TR whit especific TD?

Look this table. <table id='tab'> <tr><td>AAA</td><td class='hidable'>BBB</td></tr> <tr><td>CCC</td><td>DDD</td></tr> <tr><td>EEE</td><td>FFF</td></tr> <tr><td>GGG</td><td class='hidable'>HHH</td></tr> <tr><td>III</td><td class='hidable'>JJJ</td></tr> <tr><td>KKK</td><td>LLL</td></tr> <tr><td>MMM</td><td class='hidable'>NNN</td></tr> </table> In this table, how can I hide all TR that contains a TD with class = 'hidable'? Thank you.

VIEW QUESTION
Back To Top
Search