Category "jquery"

Is there a way to reorder "div" elements ,into a descending order, in the DOM according to their content with the onclick of a button?

I am trying to reorder the "divs" (pushed into the DOM via Javascript) with the onclick of a button. Specifically, I'm looking for a Javascript function to reac

Find index of element within a list of elements with the same class

I have a div: <div class="container"> <div class="info" style="display:block;"></div> <div class="result-image-slides"></div&

How convert input type="date" in a timestamp?

I need to convert an <input type="date"> value in a timestamp. This is my HTML code: <input type="date" name="date_end" id="date_end"> This field

jQuery Ajax Web API call returns 401 unauthorized error when set only Windows authentication in IIS

We have our Web API hosted in IIS with only Windows authentication. We are calling that API from our Angular project and it is working fine. Now we are creatin

How to not hide my form element after submission if its css display style was set to none previously

$(()=>{ $("#c").click(function loop(event){ $("#a").show(1000).submit(function(event){ if ($("#b").val() === "hello"){

QuaggaJs: Browser compatibility issue for barcode scanner

I am using QuaggaJs to scan the barcode. Everything is good and smooth for desktop version of scanner. But it gets broken when coming to mobile version of websi

Hide/unhide section after form submit. Elementor

i want to create a confirmation form on elementor using elementor form but the next section it can shown depends on the user select the button. i.e if i choose

Change input value with useRef

I captured an element with the useRef hook of React. if I use console.log(this.inputRef) I get: <input aria-invalid="false" autocomplete="off" class="Mui

How do I resolve Uncaught ReferenceError: signalR is not defined

@section scripts{ <script src="https://cdnjs.cloudflare.com/ajax/libs/microsoft-signalr/6.0.1/signalr.js"></script> } I added signalR CDN

How can I get new CSRF token in LARAVEL by using ajax

I have created a form which is having a lot of fields and user can create an unlimited field in it. If a user spends more time on it CSRF token get expires and

how to send ObjectID with ajax to backend (Node.JS) [closed]

font-end code(HTML, Javascript) I want to make delete button but i can't send ObjectID with ajax var retName = $(this).data("row-id"); $.

Javascript countdown timer should stop at 00:00

I am working on the countdown timer and I have found this code which pretty much what I need except I dont want to restart the timer when it reaches 00:00. I tr

Prevent select2 from opening when a tag is clicked

This question evolved into preventing the dropdown from opening on enter key press. As you can see, my ugly solution closes the dropdown with a setTimeout when

AOS (animate on scroll) library not working when selecting elements to animate with jQuery

I'm trying to animate H1 elements for many pages using AOS (animate on scroll). I have several pages that use the title so I'm selecting all the titles with jQu

Datatables responsive doesn't work first time

I can't seem to make my datatable responsive work. I've tried multiple solutions from using cdn's, changing table width, adding table responsive, changing the l

Datatable column width issue after "refresh" row data

I'm currently using datatable to produce table below: I'm happy with the result as the width of each column is calculated automatically, resulting 1 line per

How to add Owl-Carousel-2 completeness percent(%) status bar(not progressBar)?

First of all this is not about "progressBar", I need a completeness percent(%) status bar for owlCarousel-2, if there is any confusion in my question and descri

Django Horizontal Scroll on Top of Changelist

I have the same problem as depicted here by mozman2: "In my Django changelist there are lots of columns that means there is a scrollbar at the bottom of the lis

How to close chrome browser window using tampermonkey

Am trying to close chrome browser windows using tampermonkey but am not getting desire result fully. the code works when there is time out condition occur , it

Why Highlight Menu Item Doesn't Work in ASP.NET MVC?

Why Highlight Menu Item Doesn't Work in ASP.NET MVC? I am testing the method for highlighting the selected menu item in a MVC program. The test environment incl