Category "jquery"

Automatic file downloads limited to 10 files on Chrome browser

I have a webpage where we generate PDFs based upon the user selection of on-page items. This causes a postback (it's an ASP.NET WebForms page) which creates the

Why does jQuery or a DOM method such as getElementById not find the element?

What are the possible reasons for document.getElementById, $("#id") or any other DOM method / jQuery selector not finding the elements? Example problems include

HttpContext.Request.Form threw an exception of type 'System.InvalidOperationException' - why?

I have a strange problem. We are using C# for an ASP.NET MVC application, and JavaScript with jQuery and Data Tables for the frontend. In the frontend, a part o

How to set maximum cropbox size in cropperjs?

Hello i just want to ask how can i set the maximum size of my cropbox? Because i got a image frame which have a 400x400 image size then inside of it is a box co

Customize col on a kendoGrid data

Hi all I have done download a kendoGrid data to excel part as below. $("#1").data("kendoGrid").saveAsExcel(); kendogrid column are below 1.ist 2.7st 3.8sy colu

Event binding on dynamically created elements?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling wit

Laravel Livewire: jQuery not working in child component loaded via @if statement

I'm using Laravel 8 and PHP 8 and livewire 2. I have a Fullpage Livewire component. I have a button, to toggle a simple flag between false and true. <Button

jQuery .load() run the same as body displayed

i have a project that needs to include external html to my page. so this file will be included to many page. I'm using jQuery here. Let me show some code: $(doc

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"&