Category "jquery"

How to replace img tag with pitcure tag in summernote?

I am trying to replace img tag with picture tag in editor. Editor adding url like : <img src="http://localhost/news/uploads/large/6dBUlfZZBW.webp"> With t

Add link tag using only for homepage in bigcommerce

I want to add <link rel="alternate" href="https://www.example.com" hreflang="en-us" /> this kinda of link tag in my bigcommerce site using jQuery or anyth

Imported js function throw a not defined error

I am getting this error validate_allocation is not defined when trying to execute a function from a static file. Any idea why? <script src="https://code.jqu

Why does the form submit event fire when I have stopped propagation at the submit button level?

HTML <form> <input type='text'> <button type='submit'>Submit</button> </form> JavaScript $('form').on('submit', functi

use bcrypt() in jquery or javascript

this code is written in validation.js to validate the all laravel change password forms dynamically $.validator.addMethod("matchp", function(value, elem

Multiple modals in one page

I'm trying to get multiple modals (popup thingies) in one page. One button will let you see what subject you have, and when you click on it an modal will open

jQuery Validate money field, accept spaces?

I have a custom validator for money fields, it accepts values like 12,00$ 122.04$ 12123123 Now, I want to make it accept theese values: 1 200$ 1 200,22$ So ac

How can I retain the scroll position of a scrollable area when pressing back button?

I have a long list of links inside a big scrollable div. Each time when a user click on a link then click the back button, it starts at the very top of the div.

jquery dataTable TypeError: j[k] is undefined

I am using jquery dataTable for list of data. My issue is that when page it load is returnig TypeError: j[k] is undefined. My getStudentDataTable.json is not ge

A classical jQuery error - Uncaught TypeError: undefined is not a function

I have some JS functions in my page, and I got this error. I removed everything but the incriminated lines and I still get this error. I searched this forum and

HTML Datepicker - Opened by default

I'm using an input of the type date. I would like to know if there is a way to make the datepicker selection panel opened by default when the user enters in the

Multiselect dropdownlist with Checkbox in asp.net

I'm using bootstrap multiselect dropdown list with checkbox.its working well without master form.but its not working with master forms: <asp:Content ID="Con

jQuery multiple target IDs for click function

This may be a little redundant but I was wondering if there's a way to improve the code by shortening it to avoid repetition. $('a[href*="#about"]').click(func

Javascript Popup Form

I have an image where if you click the image, it acts as a button and opens up an overlay window with a form. A user can submit a username and password and subm

Javascript moment Is within a date range api

Currently using http://momentjs.com/ Is there a function I can use as below to find out if array of dates fall within a single day? Example: Events0 - 21-12-

Using $(this).find with .click() jQuery

On the click of the plus icon I want the check icon to appear for only the one plus icon in that particular div. Not all plus icons throughout the page. Here is

Form Validation and Submission to database

I am working on a project that has a FORM which should VALIDATE itself and then submit the data to the MySQL Database. But I am facing an error. This is the f

How to prevent that a JQuery button submit my form?

I am absolutly new in JQuery development and I have the following problem. I have a form that contains this JQuery button: <!-- RESET BUTTON: --> <td&g

Why this form is submitted also if this script forbids the submission?

I am absolutely new in JavaScript development and I have the following problem. I have a form containing two input tags where the user can insert two dates (som

Single byte, Double byte, triple byte characters how to find which one is entered by user

While working on a multilingual site (with Japanese and Chinese languages ) where users were allowed to enter characters in regional language. I had this requir