skip to Main Content

Get element by id using special characters with jQuery

I am new to jQuery, I need to get the element value from this input field <input type="number" onkeypress="preventSomeKeys(event)" onchange="setTwoNumberDecimal(this)" name="fee_ctv_omp_percent" id="fee_ctv['omp_percent']" value="0.00" class="w-100" step="0.01" style="border:none;"> as you can see the id contains special chars. I write this code, var…

VIEW QUESTION

jquery get().reverse() in vanilla js

I'm trying to translate my jquery code into vanilla js. this piece of code: let count = 1; $($(".card").get().reverse()).each(function () { $(this).addClass("zIndex" + count); count++; }); basically i have a bunch of divs with class .card, for each of these…

VIEW QUESTION
Back To Top
Search