Category "jquery"

Username validation using regex

I am trying to validate the Username field in Vue using regex. I have a key down event on the textbox and on each key down the below method is called userNameVa

How can I have multiple functions in onkeyup?

I am writing code to be able to search multiple fields within cards that pull customer data from endpoints. The first function that searches customerID works fi

JQuery to prevent an element from getting focus?

How to prevent an input element (text, text area, select, radio button, checkbox) from getting focus? I basically want to make them disabled without changing di

Get content of span

how can I get the contents of span ? I'm looking for a way for all of this to be vanilla, not jQuery javascript (and a little jQuery) var swear_words_arr=new

How to make lightbox prohibit left and right switching?

I used lightobx to make such a photo group. Although the data-lightbox inside is set with the same name, setting the same name according to the instructions in

Best practice for navigation bars on modern websites

so I've been really struggling to find a good answer for this question... I have many html pages and one navigation bar. I want to include the navigation bar on

My array inputs will not stay when I push a value (Javascript)

Good day everyone, I have some troubles with pushing a value into an empty array. Currently, I want to push a value (subLayerLength); there is only one value th

get value form array field name

<td> <input type="text" id="percent[]" name="percent[]" class="form-control"/> </td> How to get value input field like above in Jquery?

Rails 7 (7.0.2.3) Importmap jQuery is not defined in view

I've looked around for as much help as possible regarding installing jQuery in Rails 7 (7.0.2.3). I want to use it in script tags in my views, but I can't seem

jQuery DataTable too wide, width will not update

I got assigned to a project where I'm working with jQuery DataTables to grab information from a database and display it onto the screen. Here's an attached scre

Invoking a function, by traversing an array of objects

I'm using prototypal inheritance in javascript. The parent class is an animal and an example of one of the child classes is a cheetah. All of the child classes

How To Separate UUids For Jquery-Sortable

I want to use jquery-ui sortable method for my larave project. When i was separate my <tr> rows with id, there is no problem. Example; <tr id="item-1"&

message shows undefined when ajax post in ASP.net

Hi I'm Fairly new at coding and in asp.net and had an error occurred to me please help me if you can. This is my script when I run the code given below using an

How to reset jquery/javascript filter

I have a list of div items which I am filtering/sorting via JS. Each item animates in to place - in this case, scales up to its final size. When I filter the it

Chrome autofill is overlapping label text mdb css

Im using mdb form inputs. The problem is that chrome's autocomplete appears to be loading the mobile number and address before this scrip can catch it, giving m

Selecting a role in Wordpress. UserPro

At the moment, I am busy creating a registration form in Wordpress, with the UserPro plugin. Almost everything is working fine. Except for one thing, which is s

How to detect submit form button was clicked

I've two button on submit form. 1. Add to Cart Button 2. Buy Now Button I need to add disable class if the button was clicked, submitForm: function (form) {

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

I am working on Razorpay integration and after succesful payment when I try to save the details to the database I get an error. I am sending t

jquery sortable remove next row before sorting

I have one table containing parent and child as below. parent are sortable. When I try to sort any parent, I've to remove it's next child and insert it after it

Why won't my ImageMapster jquery plugin work in Power Apps portal code editor?

I am trying to apply some hover effects to my image map that I have coded inside my power apps portal site via the code editor. When I try to add in this method