Most voted "jquery" questions
jQuery is a Javascript library focused primarily on DOM handling, event management and Ajax, seeking to free developers from directly dealing with a number of browser compatibility issues.
Learn more…11,371 questions
Sort by count of
-
0
votes1
answer274
viewsEvent . jquery Keypress is not being enabled
In the table when pressing enter instead of activating the javascript event this being inserted a break line, ie the text function of enter not the event. // Função $(function() { //Função click na…
-
0
votes1
answer42
viewsAppendto is not a Function/Shopping Cart using jQuery
Hello I’m doing my first online store project but I’m missing some tasks that I don’t know how to solve right now. Below is what I need to do: How to show the cart (which will be hidden) when the…
-
0
votes1
answer64
viewsCheckbox does not load returned data in JSON
I’m having trouble loading a checkbox (<select>) using C# MVC with Json. The method returns the complete list with objects, but does not click on the checkbox. Man Controller: public…
-
0
votes1
answer561
viewsButton to delete PHP photo with Jquery
Good afternoon. I need to include a button in my editing form so I can delete the user’s photo. I’d like to do with jquey and ajax, I’m still learning. I’m using mysql that stores only the photo…
-
0
votes1
answer35
viewsHow do I change the reservation on mobile
I used jQuery-Seat-Charts to make a layout and reserve seats, the problem is that when it is on mobile I wanted otherwise. On desktop is like this: map: […
-
0
votes0
answers28
viewsValidating Checkboxlist
I am using this form validation with text fields. However, I am not getting it with checkboxList. Is there a way or a way to do this? Follow the code below. function form_validation() {…
-
0
votes1
answer79
viewsProblems alignment dropdown menu
I have a menu dropdown in Wordpress in the tab of Services, only when I resize the page with zoom, the menu is not following its parent element, Follows image and code. ul.sub-menu { display: none;…
-
0
votes1
answer27
viewsReceive integer value in field view
Guys, I need some help from you. In my system I created a modal with data viewing pulling from the database. I need one of these data to display only the integer numbers, as an example in the photo.…
-
0
votes1
answer111
viewsExecute ajax on page with more than one form
I have this Ajax code that makes the request for a PHP file, when there is only one form on the page, it works right. How do I make it work when you have more than one form? JS that works…
-
0
votes1
answer69
viewsHow to use bootstrap Carousel in a wordpress theme
I made a simple theme in wordpress and am using this kind of js: (function($) { console.log("teste"); $('.carousel').carousel(); })(jQuery); and this html: <div id="carousel1" class="carousel…
-
0
votes1
answer299
viewsJqgrid calling a function by clicking on a cell passing the line id
Good morning, I need 2 help from you. First time with Jqgrid. 1- I need to add another column on the grid with an image that will call a modal by passing the value of the line ID. 2- I also need to…
-
0
votes2
answers80
viewsDate sorting problem with DATATABLE plugin
Friends, I am having trouble sorting a table with Datatable plugin and I do an SQL query already ordered by a field and when it presents the table with the plugin it reorders otherwise and I have…
-
0
votes1
answer207
viewshow to block an action in a form
I have a form and it runs a action, but I have a query to check if there are users in the database. I wanted to know how to block the action when there are users. Form: <form onsubmit="return…
-
0
votes1
answer280
viewsjQuery with Blur effect does not work
I have a jQuery script to apply Blur effect on a div while the page undergoes a scroll. jQuery: $(document).scroll(function(){ var pixs = $(document).scrollTop() pixs = pixs / 10;…
-
0
votes2
answers361
viewsHow to make input values appear in json?
then I am doubtful here, it would be possible to make the input fields I have play what I typed in a JSON? EX: this would be the form <form role="form" method="post" id="searches"…
-
0
votes0
answers18
viewsMonitor newly loaded tags
my scenario is the following, I have a menu (class="menu") where any link that is clicked on it opens in a div ( div id="content") the problem is that the links that open inside the content div even…
-
0
votes1
answer187
viewsInfinite scroll no foreach
Could someone help me? I’m trying to find some way to use Infinite scroll in this code: <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "lista.m3u8"); curl_setopt($ch, CURLOPT_USERAGENT,…
-
0
votes1
answer36
viewsHide Ivs when mouse is out?
I have a code so structured <?php $p=0; $delay=0; while($p<=16){ $p++; $delay+=0.2; ?> <div class="column wow fadeInDown" onmouseout="outside(<?=$p; ?>)"…
-
0
votes1
answer123
viewsScripts stop when I open Modal in a Partial View for the second time
My first question here. I am developing my first system using Asp.Net MVC. In a View I call a Modal whose modal-content is a Partialview containing scripts (jQuery). When I open Modal for the first…
-
0
votes0
answers453
viewsExport HTML Table Image to EXCEL or PDF
I have an HTML table, in the last column an image is displayed (JPEG, PNG). Is it possible to export this table to EXCEL or PDF with the image? I used Datatables to do a test, however, the image is…
-
0
votes1
answer176
viewsSending PDF and JPEG files with Jquery/ajax
I am trying to implement a pdf or jpeg file upload with jquery ajax and am not succeeding, so I am in need of a help if possible. Trying to use jquery in conjunction with PHP, but cannot pass the…
-
0
votes0
answers437
viewsBootstrap Tab Responsive
I have some tabs and want to leave responsive. I found an example in codepen, using version 3.3 of Bootstrap. In the project I’m fixing, they used the 4.0.0-alpha-6. NOTE: DISPLAY WITH SCREEN LESS…
-
0
votes1
answer442
viewsEvents of jQuery Vs. Arrow functions?
When executing the following code: $("button").on("click", function(){ console.log("Meu valor é: " + $(this).val()); }); <script…
-
0
votes2
answers131
viewsDelete element from array
I have a form with 60 input textbox with name number[], of those 60 numbers I can only select a quantity x( quantity can be variable ); as I do for when the user unchecks the checkbox the number is…
-
0
votes2
answers742
viewsHow to put paging in foreach that returns a JSON list with ajax
I call this function which returns me a list and populates a table in the view, updating every time I pass a parameter through the filter. Everything works perfectly, just need to put paging,…
-
0
votes2
answers123
viewsHide checkbox and display other
I did a little validation in my script only that I am not able to do the following validation. I have 2 checkbox, each execulta an action, as you can see in my if down below. @if (item.Cadeado == 1…
-
0
votes1
answer86
viewsC# controller function receive an array
I need to take a select array and send it to a function in the controller, but it always arrives as null, even sending the full array. Below is the code: Controller: [AcceptVerbs(HttpVerbs.Get)]…
-
0
votes0
answers97
viewsCustom Loading on Demand
Hello folks would like to make a shipment on demand, but I’m not getting to assemble. Just follow my code: function show(letra) { var itens = ""; $.ajax({ type: 'GET', dataType: 'json', data:…
-
0
votes1
answer71
viewsHow to filter another page result with Jquery Load() or Get()?
In an HTML have for example: <fieldset> <div> <h3 class="title title-line">Dados da conta</h3> </div> <div class="ch-form-row"> <label>Usuário</label>…
-
0
votes1
answer1853
viewsHow to select a specific tab by clicking the button
I have a page that turns a list <ul> in flaps with jQuery, and on the first page I need a button to redirect to the next tab, without needing the user to click with the mouse. I’ve tried with…
-
0
votes1
answer88
viewstake jquery autocomplete value for dynamic online calculation
I need to take the returned value of the autocomplete to make a sum in a dynamic list of products, and already does the calculation of value and quantity and now I needed to insert a new column…
-
0
votes1
answer143
viewsSearch system with charging on demand
I have a search system with load on demand with php and jquery, I can search for letters correctly, and I do the load on demand correctly, the problem is that when switching letters to search, it…
-
0
votes0
answers295
viewsJavascript with PHP to generate a PDF
I have a dynamic table on Javascript. I need to send to the PHP all items that have been added to it and generate a PDF with class mPDF. Could someone help. HTML/Javascript code:…
-
0
votes1
answer123
viewshow to send an image to php through a hidden input='file'
I would like to know how to send my <input type="file"> to the php through the ajax. I wrote the code but the same does not call the url php and does not return me error. html code: <button…
-
0
votes0
answers70
viewsWhen moving the scroll it makes i++
Good evening, I need to do a function, I managed to make the logic but I’m not able to perform... The logic is as follows... when scrolling the variable that was started with 0 becomes 1, moved…
-
0
votes1
answer58
viewshow do I define where my scroll animation(jquery) should end up as a string on the page
Hello, I would like to know how to define a location where the scroll effect of site one page should stop. The problem I face is that by clicking on one of the links in my navigation menu in the…
-
0
votes1
answer40
viewsFix Bug of a simple Jquery function
Hello! I’m having a little problem regarding bugs on a site I’m setting up, where when the interface opens, a function JQuery which was made to replace the navbar logo by a larger one is not being…
-
0
votes1
answer5249
viewsAjax and dataType JSON
When I do so, the return is a parsererror. $.ajax({ type: "GET", url: "servicos.php", data: "id=1", dataType: 'json', ==========================> Essa linha bem aqui success:…
-
0
votes0
answers93
viewsCreating 2d board with images
Hello, I am creating a board game2d with Js/html/CSS, With the code below I can make each div’s text move across the board, but I can’t make those pieces images... In the codepen below you can see…
-
0
votes2
answers109
viewsWhen clicking a radio button, disable the textarea
How do I to disable the textarea by clicking on a radio button that is listed according to the information coming from a database. Look below: I would like to click on Not, the textarea of reference…
-
0
votes3
answers5235
viewspass 2 parameters in button Onclick event
I have the following code that I would like to pass the ID txtCodEmpreendedor and txtName of the fields below as parameter for the event Preening(); <script> function…
-
0
votes1
answer368
viewsSelect2 with ajax not returning data
I am trying to make an ajax query to an api to dynamically create a Select2. The api is returning data normally, but only the "No Results found" message appears in select. HTML <select…
-
0
votes1
answer1572
viewsProblem with Mascara Currency and I calculate
I have a function that is called here: $("#valorPrimeiroPedido").focusout(function () { var valor = $("#valorPrimeiroPedido").val(); calcularValorMercadoria(valor); });…
-
0
votes0
answers107
viewsJSON DOES NOT RETURN
I am updating the database. But the json does not return. Can you please help me? JQUERY FILE $(document).ready(function($) { // Evento Submit do formulário $('#myForm').submit(function() { //…
-
0
votes2
answers110
viewsJquery - Identify automatic text
I am using Jquery to identify when the text box is text in the text box, thus: CSS: .inputtext { border: 1px solid lightgrey; margin: 0; margin-top: 11pt; width: 100%; } .inputtext:focus { border:…
-
0
votes1
answer460
viewsList CRUD with Jquery
I am creating a list of items with Jquery that is rendered on the screen according to what is typed in the input. To display the element on the screen (Item name, change button, and remove button)…
-
0
votes1
answer108
viewsSeparate data from multiple forms with Formdata
It would have been possible to send some formularies at the same time with Formdata? For example, each product will have sizes and images. It would have to separate each product into an array and…
-
0
votes1
answer17
viewsDoubt with Jquery
I have the image attached when I click on the checkbox, I can give Highlight on that line via the following code : $("input[type='checkbox']").change(function (e) { if ($(this).is(":checked")) {…
jqueryasked 7 years ago Luis Junior 1 -
0
votes1
answer204
viewsJQGRID change the color of the line or data if the return is NULL or White
Could I condition a different color if a column is blank in GRID? Something like this: if Shop ="", red line color $table.jqGrid({ url: url, datatype: 'json', mtype: 'GET', postData: {…
-
0
votes2
answers2173
viewsPick data-attribute from a selected option by clicking on button
I wish that by clicking the button I could pull the value and data-dado of the selected option. I tried with the code below, but it didn’t work: $("#botaoexemplo").on("click", function() { var valor…