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
-
1
votes0
answers64
viewsHow to change toggle switch through database
I am trying to change the bool in the database to true or false, the toggle switch to change, depending on true or false. <script> $(document).ready(function () { for (var i = 0; i <…
-
1
votes3
answers483
viewsStore URL snippet - Javascript
I am capturing a certain value of the URL through Javascript, but I’m having difficulty at some point. Follow below. var url = window.location.href; var page = url.split('/'); var page =…
-
1
votes0
answers56
viewsRetrieve Jquery value in PHP
I have a popup that geolocates the customer and generates a cookie, which will be used for various purposes on the site. Everything is working, the only thing I could not understand is that if I put…
-
1
votes1
answer38
viewsHow to clear an event
I am creating a comment system with reply only that at the time of reply goes twice to the bank when I send a comment, I made the system of response in slide where you open one and close the other,…
-
1
votes1
answer361
viewsHow do I manipulate data from a select created from jquery
I am trying to take the values of a select that I entered through a jquery, and as the value it adds elements within a div also created by that same jquery. The problem is that I’m not getting these…
-
1
votes1
answer293
viewsFunction that passes arguments dynamically to callback
How to pass arguments in a callback function (usually anonymous function)? It may get hard to understand, so I’ll give you an example here. I always see this in libraries like jQuery, but I don’t…
-
1
votes1
answer171
viewsDisplay elements one by one with . each jquery
Hello, guys. I’m having problems with the . each of jQuery. I have an xml like this: <dados> <usuarios> <usuario id="1"> <login>usuario12</login>…
-
1
votes1
answer273
viewsCalling separate functions via Ajax with Jquery in PHP
I have the following example: My file HTML has this code snippet: <script> $( "form" ).submit(function( event ){ event.preventDefault(); $.ajax({ url : 'funcoes.php',//url para acessar o…
-
1
votes1
answer573
viewsDo not reload page when giving Submit in modal
I have a modal to research customers: Which is called a registration form as follows: $('#linkSearchShipperCustomer').on("click", function (e) { showDialogList("@Url.Action("IndexShadow",…
-
1
votes1
answer39
viewsChange page Divs and specific Ids with calculations
Speak guys, I have the following situation on my site, on the carts page have a div I need to change the content of it and put some calculations according to the total value, let go of the…
jqueryasked 7 years, 5 months ago Rafael Meirim 321 -
1
votes2
answers480
viewsList of videos with link to load another video without refresh
Hello. I want to create a list of videos in which I will have a main video (bigger picture) and a list sequence with thumbnail of the others. However, in this thumbnail list there should be a link…
-
1
votes1
answer629
viewsPass Onkeypress input value of button
I have an input: <input id="in_cpf_cnpj" name="cpf_cnpj" class="form-control" placeholder="Digite o CNPJ" required autofocus></> I need to send the value of the same, as parameter, to a…
-
1
votes2
answers281
viewsSend data to an Actionresult from a Controller other than the current one
How to make a post sending data to a ActionResult of a Controller different from the current ? Example: I have a link called lnkEnviarDados and I need to post on the page sending the contents of the…
-
1
votes1
answer293
viewsSend an ALERT to a UNIQUE field in Mysql
I have a field in the BD set as Unique, to avoid duplicate registration. Works perfectly. I wonder if there is a way to personalize this message, with an Alert, for example. My code: <?php…
-
1
votes2
answers169
viewsDoubt with dynamic fields creation with jquery + php
Hello! I’m doing a simple program for managing my beers and sales. In the order view, I was able to add a new line to include a new item for the order. Fields: id_item(select) | id_lote_item(select)…
-
1
votes1
answer61
views(json with object) ajax
How can I consume in ajax the following Json(Coming from a Web Api Rest?) [ { "usuario": { "id": 1, "login": "gleyson", "senha": "123", "ativo": "S" }, "id": 1, "tipo": "J", "razao_social":…
-
1
votes0
answers65
viewsReturn Value with Moneymask
I have a function that performs a calculation and changes the value of my component. But I would like her to return the real value already with the Mask, I’m using the MaskMoney but you’re returning…
-
1
votes2
answers703
viewsHow to get the ID value of the i tag?
I have the following DIVS: <div id="img_btn2"><a href="#modal1" class="modal-trigger btn-flat"><i class="material-icons icone_branco">alarm</i></a></div> <div…
jqueryasked 7 years, 5 months ago Guilherme Lirio 470 -
1
votes2
answers798
viewsTake value of variable in function return
$scope.fetchData = function (param) { var url = param; var thumb; var imgid = get_numbers(url); var hash = ("http://vimeo.com/api/v2/video/" + imgid + ".json"); $http({ method: 'GET', url: hash…
-
1
votes1
answer5846
viewsScroll through all rows of an Html table and hide if any column 5 is empty
I have no advanced knowledge with jquery and need to go through all lines of an HTML table and hide the Line entire case the column from of the number 5 (JUS) be empty and update the sequence…
-
1
votes1
answer476
viewsUPDATE with AJAX
I am doing an AJAX which, after the user select a checkbox and set a status (the status is select) AJAX take the information and send to a page called status.php where the status change box,…
-
1
votes1
answer450
viewsUpload a file with JS
First I wanted to say that I got to read some posts about it right here in the stack, but I couldn’t make it work, so I decided to post my code. My idea seems to be very simple, I need to upload a…
-
1
votes1
answer18
viewsReapply the result with a comma after checking or unchecking checkbox values
I know there is replace but can’t apply so that the total is presented with a comma after checking or unchecking the checkbox. $(function(){ total = document.getElementById('total');…
jqueryasked 7 years, 5 months ago user60252 -
1
votes1
answer188
viewsHow to clone a dynamically created element with jquery?
I need help cloning an already created element dynamically with Jquery and adding +1 in value and element name. else if(valorSelect == 'listaSuspensa'){…
-
1
votes0
answers158
viewsDoubt in a jquery with div print
following doubt, I have a javascript code that it makes impression of a div by id, only the following, is a form, I would like to customize, with header and images, it is possible without I have to…
-
1
votes3
answers477
viewsJson filter help with jQuery
I need help with the Json filter with jQuery, I have this code: var chamaFiltro = function(horaminida){ var pesquisa = { idamin: horasParaMinutos(horaminida) }; var filtrados =…
-
1
votes1
answer1094
viewsSelect Option with filters
Example of the first Box: <h5>Filtrar por Marcas</h5> <select name="filtrar_marca"> {% for category in categories %} <option value="{{ category.name }}">{{ category.name…
-
1
votes1
answer101
viewsTable line deletion in Jquery
I have a table with an delete button where it should, when clicked, delete the record in question, but when I click delete it performs the correct deletion in the database and when updating the…
-
1
votes4
answers1089
viewsHow to change the color of the radio button text when losing selection
I am trying to change the color of the radio button text when losing the selection. It turns out that these radio Buttons are on several tables. The rule is as follows: The screen will be loaded…
-
1
votes0
answers19
viewsSelect two elements in each to pick up timeInicio and End of screen inputs
I have a page where I have start and end date, and I need to create a validation where you can’t create any record if the current time is between these two dates. I have the current date already and…
-
1
votes2
answers180
viewsASP.net Javascript does not recognize Textarea if it has a runat="server" tag
I have a problem with my Javascript. I am using a server code to do the numbering in a Textarea when the user gives Enter, however, if that TextArea has the tag runat="server" Javascript does not…
-
1
votes3
answers242
viewsHow to enable click on entire cell of a table opening file on a new page
I’m trying to adapt a code that should do the following, by clicking a cell of a table trigger the link by opening the file in a new browser window, what I have so far is this, on tr of table one…
-
1
votes1
answer588
viewsAdd a different image in a div to each loop using javascript
I need to add a different image in a div. I used a for to make this loop. Is there any manipulation that I can do in the img tag that I am adding so that each loop is changed the name of the image?…
-
1
votes3
answers314
viewsJquery function does not find the Controller when I go up to the server
During development the function below finds the Control and makes the request correctly, but after publishing on the server the function no longer finds the Controller: During the development I have…
-
1
votes1
answer810
viewsRemove dynamically created html element in ajax Success
I created an ajax request to dynamically create a new element li, however I have a function also in ajax to eliminate registration and in success eliminate the li valet. The problem is that, in all…
-
1
votes1
answer41
viewsHow do I get my content behind my popup?
Every time I click on my popup button, my content "goes down". How do I get the popup above the content? body{ padding:0; margin:0; } .container2{ position:relative; margin:0 auto;…
-
1
votes1
answer161
views -
1
votes0
answers1135
viewsPush in HTML5 with PHP
I’m finalizing a system, but I’d like to include push notifications to warn users about a particular event. I searched the web, but I did not find anything satisfactory. I believe that I have not…
-
1
votes0
answers57
viewsDoubt with JSP - Message
I am in need of help, to display a message through fmt:message. The situation is as follows. I have a form that is submitted via $.post. In the controller that receives this request, I do a…
-
1
votes1
answer202
viewsMissing list items with jquery or javascript
I have the following codes below and I need to make sure that when I click on the autocomplete result, and it fills the field with the values, the list of the autocomplete simply disappears:…
-
1
votes1
answer256
viewsError while sending Json
I have the following variable: json_sending = JSON.stringify(obj); the value of the: "{"usuario": {"login":"gleyson", "senha":"1"}, "razao_social":"INTELIDER", "nome_fantasia":"INTELIDER LTDA",…
-
1
votes1
answer326
viewsAccent problem and special characters leave bold autocomplete term
I have this script that does a search using the Jquery autocomplete. $( function($) { $.ui.autocomplete.prototype._renderItem = function (ul, item) { var t = String(item.value).replace( new…
-
1
votes2
answers44
viewsAdjust string in HTML calculator
I have this calculator that is not my own and that works perfectly. The problem is that when we multiply, the display appears asterisk and not x. I wish that when clicking to multiply, appeared x on…
jqueryasked 7 years, 5 months ago user24136 -
1
votes1
answer49
viewsLogin com redirect
I have a login form running with Jquery + PHP, I’m implying the option to redirect based on the url I want to receive via GET, as below: https://pt-br.example.com/?redirect=https://blog.example.com/…
-
1
votes4
answers192
viewsSumming up 3 inputs
I have an input that is required with currency Mask but the user can enter 2 more inputs. I am not able to do this calculation, especially when the 3 inputs of values are not used. Value input only…
-
1
votes1
answer435
viewsDatatables - Export to Excel
I have a table that, after being loaded, each row has a button to show details (icon +) as shown in the image below: Clicking on this button opens a new table below that can be collected later. The…
-
1
votes4
answers629
viewsHow to make a Popup that only records information on the cookie or anything and displays only once on the website homepage
I have an adult entertainment site and I need to do an 18-year term to get on the site before... A screen will be displayed confirming the age and such of the person to click ok if it is bigger. But…
-
1
votes1
answer804
viewsJquery autocomplete for city search, does not distinguish data from cities with the same name
I’m using Jquery, Ajax, PHP and MYSQL to do Autocomplete in a Brazilian city search field. When I type the name of the city the suggestions appear and when I pass the mouse over each city the code…
-
1
votes2
answers44
viewsProblems validating balance
Hello, my personal beauty? I have a problem in my code, I am doing a validation to check if the amount entered by the user is greater than the balance, if it is I send an error to the user. The code…
-
1
votes2
answers2955
viewsApplying scroll to table keeping header fixed
I was looking for a way to apply the scroll vertically and horizontally keeping the header fixed to my table. I found in that fiddle a possible solution to this case. $('table').on('scroll',…