Category "jquery"

Most efficient way of showing or calling repeat/duplicate HTML?

I have five div elements containing the same six images. Only one div is shown at a time (others are display:none) but all are on the same page. Basic example:

Trigger button click event of a Vue.js application programmatically in a Chrome extension

I am developing a Google Chrome extension. There's a third party website that is developed in Vue.js. I need to trigger a click event of a button on a page. But

openlayers map.updateSize when the width of the map changes

when displaying a side panel, I would like the proportion of the map to be kept inside the new div width (or height). There it is simply reduced, which affects

cakephp save drag and drop list order to database

I have a list and I want to let users reorder the list. For the front-end functionality, I am using UIkit. The list can be reordered on the front end up but I a

how to loop through json response data using ajax jquery?

I'm trying to loop through a json response with ajax jquery but I can't display the result. Here is the code Im using: data.php function platformsList(){ $q

Dynamically loading multiple FilePond instances

I have a page where multiple input file fields are dynamically added to the DOM, and each should be converted to a FilePond. Here is a Codepen to simulate my i

How to show div only after all the image inputs loaded?

I want the div "container" shows only after all image buttons in the div "inner" fully loaded. Or outer_1 and inner_1 show together after 1.jpg is loaded. <

How to get the value from each drop down in a dynamically generated table

I have dynamically added rows to a Table and inside table I have filled up a drop down, but I am not able to get the selected value of drop down list. I tried t

how to scroll to top automatic when closing a div with toggle()

I have a issue with scrolltop. I have a div which slides down and up with toggle(). This div is pretty long with lots of content and its height is set to 300px.

jQuery .hide() button when another button active

I have a "Load More" button that has a class named .btn.btn-primary.ng-scope. When we have some items to show and class .btn.btn-primary.ng-scope.ng-hide when a

How to search nth child alone in jstree

I want to search only 3th child in jstree. I tried $('#userlogs li>a ').find('span:third-child').jstree('search', searchstring) - this is not working. In my

How to Display Data in Yajra Datatables Laravel 7?

I want to display data in Laravel using Yajra Datatables, but the problem is that the data can't sync yet. If I do Dump and Die dd($orders), the number of dat

How to show alert on browser back button click event using jquery

I want to show alert while clicking on the back button in the browser. it only works before clicking on the back button, when you click to somewhere else on the

HTML Javascript image slider - adding slide animation/

I made an image slider that work, but now I'm trying to add an animation effect to it, and I believe JavaScript may be the answer for that. I'm trying to add th

How to take div value through parent elements using jquery?

I need to take the text "UNIT01". How I can do this using JQuery or JS? `<div id="unit"> <ul class="choices"> <li> <div>UNIT01&l

How to Replace Copied Text from A wordpress website to Custom text

I have a wordpress website. I try to come up with solutions to protect my website from being copied. I try to know, is it possible to Replace Copied Text from A

Upload a empty folder with js or jquery

hello there I am building a folder upload system with js and PHP but I got an issue I'm not able to upload a folder that not contains any files I use <in

How to ScrollLeft 50% and ScrollTop using jQuery [duplicate]

I have the solution. I noticed new trainees find it difficult to implement some functionality at times. Strongly not for ratings but for educa

jQuery check all checkboxes in table

I have a table with a checkbox in the table head which I want to use to check/uncheck all the checkboxes in my table. This is my code, but it doesn't work.

ERROR:jQuery.verto.init is not a function

I'm using a Verto library in my nodejs console based project - I've added all necessary references to main.js file - something like this: const jsdom = require(