Category "jquery"

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

event.preventDefault(); only works some of the time with submit form

I am using the Mailchimp API to submit a form. The goal is to prevent the default callback provided by Mailchimp. The majority of the time event.preventDefault(

jQuery Datepicker minDate is not working in bootstrap

I'm trying to set a minDate for a jquery datepicker. but itz is not working. $('.datepicker').datepicker({ autoclose: true, todayHighlight: true,

Streamlabs custom CSS twitch chat animate name and message seperatly

I want to customise my twitch chat overlay from Streamlabs so that the username of the person animates from the left while the actual message they send animates

Allow only numbers and multiple dots in jquery form input

I wanted to know a way to allow only numbers and multiple dots in using jquery in a form input. The scenario is that the form input holds a version name and ve

Jquery Datatables Date Range Filter

The code below is working perfectly but I need to add a new functionality to allow the user to filter on a range of records based on their start date and end da

Custom responsive navbar (priority nav) using Bootstrap 5 and no JQuery

Trying to create a Bootstrap 5 custom responsive navbar (priority nav) with a "show More..." option using Vanilla JS, as I have dozens of menu-items and I can't

Jquery - Automatically add current year months to dropdown

I am trying to automatically add the current months of the year, for the current year to a Bootstrap dropdown list. Currently, I am adding them manually as I a

How to get AJAX to post on second page?

This is what is happening: I send data but and I have it coded to echo out on second page. However, it just echoes out on first page. How do I make it so it ech

JavaScript to update End Date when Start Date is changed

For the site I am developing, I use a form to update the different fields of a model. Some of those fields need to be updated according to the values of others.

500 Internal Server Error on Ajax request. Not sure the origin of the problem

I'm getting 500 Internal Server Error and I can't figure out the origin of the problem. This request is supposed to delete a comment with a certain id from the

Bootstrap button drop-down inside responsive table not visible because of scroll

I have a problem with drop-down buttons inside tables when are responsive and scroll active because the drop-down is not visible because of overflow: auto; prop

Dropdown not showing the selected option

This is what i have coded. $(document).on("change", "#keyDropDown, #valueOfKey", function() { //var chosenKey = $(this).children("option:selected").val();

bootstrap drop down stops working when I use newer version of jquery

I incorporated a newer version of Jquery on my page to make a picture slider work, but when I link the jquery file to make the image slider work, the top menu s

Dropzone.js - Combine with normal form - ask about positioning

I am using Dropzone and try to combine it with normal form so I read this tutorial https://github.com/enyo/dropzone/wiki/Combine-normal-form-with-Dropzone and

How to defer inline Javascript?

I have the following html code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title&

Inline-block remove bottom space to add text

I have the below code to begin an animation for an acronym that makes the code transform to a vertical form. I'd like to have it where it will type the rest of

Pass an image through AJAX [duplicate]

Basically I want to pass a image file with ajax on submitting a form and retrieve the image and send it by email as an attachment file: Here'

Check URL if it has a specific anchor tag

If a user requests the following address (from another page), I want to scroll down to the contact form area: http://www.example.com/index.html#contact How w