skip to Main Content

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