12,967 questions
-4
votes
0
answers
65
views
jQuery Multiselect plugin runs automatically without calling multiselect(). Why? [closed]
I am trying to use the jQuery plugin Multiselect on a select in a simple PHP page. The options are generated from a database and inserted via JavaScript.
<form>
<select name="courses&...
0
votes
0
answers
157
views
JQuery gallery with multiple instances not working
I have a webpage where I want to get multiple instances of the same JQuery-powered gallery tool.
The first instance works just fine; all the individul items are clickable, the arrows work, and moving ...
-1
votes
1
answer
73
views
Issue with Switching and Adding Classes to Elements on Mouse Click
I'm encountering a problem while trying to switch and add classes to elements when a mouse click event occurs. Likewise I have multiple "li" elements. I want to add "class = subdrop ...
0
votes
1
answer
116
views
How to define jQuery globally in Vaadin 23/24, so I can use jQuery Plugins?
In Vaadin 14 it was possible to integrate jQuery Plugins like so:
@JsModule("./src/jquery-loader.js")
@JsModule("./src/myplugin-loader.js")
In jquery-loader.js something like:
...
0
votes
1
answer
57
views
jqGrid - Show Page Numbers In Export To PDF
I'm using Guriddo jqGrid JS-v5.8.2 with pdfmake 0.2.7
I can print the jqGrid to PDF, but I want the print out to show page numbers in the footer for example. Here's what I have
$("#...
0
votes
2
answers
92
views
LoadingOverlay iterate many overlays and hide programmatically
I'm working with this libraray
https://gasparesganga.com/labs/jquery-loading-overlay/
Example: To show an overlay for an element:
$("body").LoadingOverlay("show", {});
Example: To ...
1
vote
0
answers
126
views
Multi-select Filter Checkbox with dynamic array values
https://github.com/andreww1011/filter-multi-select (Github)
https://www.jqueryscript.net/form/multi-select-filter-checkbox.html
I have been trying to replicate the above Multi-select Filter Checkbox ...
-1
votes
1
answer
202
views
jQuery Ripples Effect Not Displaying
Using the Jquery Ripple effect library, i'm trying to apply the given effect as a CSS class element. I'm using a WordPress development environment, and I have added my function run (functions.php) but ...
0
votes
0
answers
38
views
how to redirect to when duplicate window open in any web browser ? how to do this requirement like whats app web?
In my project from Dashboard, end-users opened webpage links multiple times by mistake.
how do redirect when the duplicate window opens in any web browser? how to do this requirement like whats app ...
0
votes
1
answer
353
views
Assigning video url to the <video> tag dynamically on the fly
I need to assign the video url to the <video> tag on the fly, expecting the video to show in the player, also on the fly:
I have this:
<script>
jQuery( '#the-video' ).children( 'source' )....
0
votes
0
answers
84
views
system round robin using jquery bracket stage group
I need your help to show me any guide or tutorial for generationg round robin tournement exactly like world cup I need to have 8 groupe and system first win VS second win from other groupes also any ...
0
votes
2
answers
168
views
Change Specific Column Header Background Colors of jqGrid Table
I have looked at the following post, but have not been able to get it to work for me: jqGrid change background color of specific column headers
I have tried the following css entries, but none of them ...
0
votes
0
answers
83
views
How to get a custom grid param in jqGrid jQuery?
net web forms project and I get data with this format from my ashx.cs http handler file (server side) :
{"total":1,"page":1,"records":10,"userData":{"...
0
votes
0
answers
35
views
Setting request_locale change format variable Date in Struts 2 [duplicate]
I have a web app with Struts 2.5.30 and struts2-jquery-plugin 4.0.3 , I'm using datepicker with displayFormat="dd/mm/yy" and when user change language with a click on flag image the param ...
-1
votes
1
answer
689
views
Post method doesn’t work in ASP.NET Core Razor pages
I'm trying to submit my form to the database, but when I click on confirm button, I get this error:
.
This is my form:
enter image description here
This is my index class:
enter image description here
...
-1
votes
1
answer
36
views
buttons 2.4.1 css differs between standalone and builder package
When I don't download the standalone version of the buttons css then the layout is broken:
I am using the DataTables download builder which creates this long css link:
<link href="https://...
0
votes
1
answer
967
views
Does jquery 3.6.1 support jquery-validation 1.19.5?
The project that I am working on uses jquery version 3.6.1 and jquery-validate version 1.15.0 along with jquery-validate-unobtrusive version 3.2.11 .
I want to update my jquery-validate version as its ...
0
votes
1
answer
1k
views
Update data in 'breaking news ticker'
Info:
I have a site for the local sportsclub that is showing the latest news. I have used an example code called 'Breaking News Ticker' as can be found here (example 4). Works great.
Problem:
I want ...
0
votes
0
answers
85
views
jquery plugin smartmenus-1.2.1 and jQuery-News-Ticker-master plugins crash
plugins jquery smartmenu clashes with plugins jquery news striker. Can anyone provide a solution to this problem. i just started learning
script src="{{ url('public/assets/js/jquery.smartmenus.js'...
0
votes
2
answers
142
views
How to escape the apostrophe in javascript
When I select a name from dropdown where it has an apostrophe
Example: Brian O'Connar
My JS code will bring Brian O and rest of the characters after apostrophe gets cuts.
My Original JS code to load ...
0
votes
1
answer
53
views
Show different element if the the class has the class active
#Summary
I'm using a carousel as a navigation.
<div class="swiper-slide state1 swiper-slide-active">STATE 1</div>
<div class="swiper-slide state2 ">STATE 2</...
0
votes
1
answer
57
views
jquery.typeahead matched result causes modal for to close and parent to reload on hitting the enter key
The modal forms in our app all close and reload the parent form when you hit the enter key. Not really causing an issue but can get round that with the code below:
$(document).ready(...
2
votes
1
answer
328
views
$.holdReady(hold) is deprecated what is the replacement for it
I have the following code where I'm loading and updating the config dynamically
$.holdReady(true);
$.getScript("econfig",function(){
$.holdReady(false);
})
This holdReady has been ...
0
votes
1
answer
155
views
How are JQuery widgets bound to DOM elements?
I have a question about how jquery widgets are bound to elements using the following syntax:
$( "#myElement" ).datepicker();
I have created my own datetime picker but it is bound to the ...
0
votes
1
answer
297
views
Is it safe (XSS attacks) to provide callback functions in jQuery plugins?
I've been using a popular jQuery plugin for years and while reading about cyber security, which I'm certainly no expert but I'd like to learn how to write better code, I realised that this plugin and ...
0
votes
1
answer
168
views
Searching select options using parts of word with jquery select2
Say for example. If there is one option as "Eyes Nose", then I want to search the option with input as "Ey No". Select2 fails to suggest the option here.
By default if we just ...
0
votes
1
answer
121
views
Uncaught TypeError: jQuery function is not a function
I'm having a problem with this sample code. When I try to execute someFunc(), I get the error:
Uncaught TypeError: $.twbsPagination is not a function.
<html>
<head>
<script type='text/...
0
votes
1
answer
594
views
Jquery - Download data in chunks from server and keep appending to a file on client
I have my data residing in the Postgres Server in JSON format. The data is in the hundreds of thousands of rows. I wish to provide a link to the user to download the data in chunks ie. not all the ...
0
votes
1
answer
51
views
HTML Radio button JQuery validation doesn't work
Hello i am developing a 5 star rating review by the radio button. this radio button doesn't work properly.I want to implement in the wordpress. Check the image. https://i.sstatic.net/UR5ED.png. This ...
1
vote
1
answer
133
views
Is there a way to tell jQuery tablesorter that the table is already sorted?
I've a web app that builds a table from data it receives from an API. These data are a CSV string, which has its rows already sorted by the API using a couple of columns.
Currently, I use the sortList ...
0
votes
1
answer
55
views
How to Prevent Jquery UI dragSelect when any modal is open
I need open a modal on a page where JQuery UI dragSelect is implemented
I want to stop dragSelect when the modal is visible when I click on modal items are selecting in the background.
searched in the ...
0
votes
0
answers
321
views
jQuery Sparkline is not working for me. What am I doing wrong?
I tried to emulate the example provided by https://omnipotent.net/jquery.sparkline/#s-docs, since I want to work with JQuery Sparklines for a project.
This is what my attempt displays
I downloaded ...
0
votes
1
answer
149
views
How do you add more options to a select2 <select> using jquery?
I was having the same challenge and i found official select2 documentation very useful.
I tried this$('#selectBox').append($('<option>').val(optionValue).text(optionText)) but it was auto ...
0
votes
1
answer
102
views
How can I search description in Awesomplete?
I'm using Awesomplete plugin.
<input class="awesomplete" list="mylist" />
<datalist id="mylist">
<option>One</option>
<option&...
1
vote
1
answer
377
views
jVectorMap latest version(2.0.5) is not working properly with WordPress
On Static HTML, JS, and JQuery, their solution is working fine as documented https://jvectormap.com/maps/world/world/ but when I try to use WordPress and use wp_enqueue_scripts hook for the assets of ...
1
vote
1
answer
627
views
JQuery UI change draggable snap position based on another elements
I have an bunch of draggable elements, that are absolutely positioned on an "artboard". Users can edit these elements, and also drag them.
Most important thing that user can lasso-select or ...
0
votes
1
answer
38
views
Run 2 functions synchronously in jQuery
In jQuery, I am using dialog for the user confirmation. But when I try to run this code shown here, it does not work as I want.
If the user selects "yes", then after another function like ...
0
votes
1
answer
116
views
I am trying to use mailcheck, but it doesn't show suggestion for me
for some reason it doesn't work, but I am sure that javascript file works, I tried to do everything as in this working example: How to include a jQuery plugin with <script> tag one thing that is ...
0
votes
2
answers
427
views
Validate a US phone number from an optional input field
I am using jQuery Validation Plugin to validate a phone number from an optional input field.
Here is my form:
<form id="input-form" action="" method="post">
<...
-1
votes
1
answer
577
views
Problem while time needed in a multi select date picker
We're in a need to select multiple dates with a time. Not a range, need to select random dates. But multiDatesPicker only selecting multiple dates alone without time.
Checked some of the gems like ...
3
votes
1
answer
189
views
How to properly author or create a JQuery plugin that supports HTML data-*attributes?
I am currently creating a JQuery Plugin that support data-attributes for defining options. I scoured the internet for sources on how to propery do it, but cannot find any.
What I have done so far:
...
0
votes
0
answers
97
views
How to access or call a function defined as one of Jquery Plugin option parameter?
How can I call a function defined as JQuery plugin option parameter in my Base Script?
Plugin
$.fn.myPlugin = function(){
var config = $.extend({
read:function(){}
})
config.read.call(this);
...
0
votes
1
answer
584
views
How to map function on each element with css class in javascript
I'm rewriting some stuff which I created with jQuery to vanilla JS. I can't find vanilla JS equivalent for mapping my function to all elements with specified CSS class. For example I have function for ...
1
vote
1
answer
456
views
How to include a jQuery plugin with <script> tag
I'm a beginner at JavaScript/jQuery, and I am stuck trying to get this to work. I'm trying to use jQuery mailcheck plugin with the example provided in the readme.
I attached the script to HTML file at ...
1
vote
1
answer
263
views
Convert a simple unordered list into a nested list depending on the content of its list items
I have been looking for a solution that can help me to convert a single level html list into a multi level one.
The HTML Code looks like this before the conversion:
<ul>
<li><a>...
0
votes
1
answer
72
views
Solution for hyphen word [duplicate]
I am wondering about this case:
Is it possible to do something like that?
if word, for example co-worker is hyphen, jquery can take detect and take word and replace with class inside?
Example:
<...
0
votes
0
answers
155
views
JavaScript errors with Easy Appointments plugin, any suggestions?
I am using the following plugin: https://easy-appointments.net/
It was working about a month ago. Now it is showing multiple errors.
First it wouldn't find a bootstrap.css.map file in the plugin ...
1
vote
1
answer
283
views
Custom jquery plugin: '$.myPlugin()' is not a function
Hello there I know this has been anwsered many times before, but none of the anwsers help me
am trying to load a jquery plugin to bypass cors during development
<html>
<head>
<...
0
votes
1
answer
351
views
Select 2 - Unable to select previously selected options
I have few select fields generated in the HTML using a loop as below:
<isloop items="${pdict.phoneData}" var="phone" status="loopState">
<select
required
...
0
votes
1
answer
57
views
How to remove the box-shadow from the Jquery validator error message?
I have the following form:
<form id="form-email" class="ps-4 contact-form" autocomplete="off">
<div class="row">
<div class=&...