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
votes1
answer59
viewsProblems with DRAG and DROP using Redpis
I have an application that generates a gridView (ASP.NET) of information and in each column I can have 2 values. One of these values is the total working time (x) of a person for a specific date,…
-
1
votes1
answer235
viewsCapture a state name (Uf) and an image
Good night to you all. I have an image of Brazil with its states: How do I, if I click on the image of the state of São Paulo, fill this name in a text field. <input type="text" name="uf" id="uf"…
-
1
votes1
answer2613
viewsGet Inputs with type="money"
$(function() { $("input[name*='pvn'").maskMoney({ thousands : '.', decimal : ',' }); }) I do this to pick up inputs with name='pvn' and apply a mask, but I would like to apply this mask to all…
-
1
votes1
answer1838
viewsError typing IF and Else in jquery
I’m starting to venture now into the world of development and hit a question while using IF and Else. The code below is OK <select id="course_list" > <?php $my_query = new…
-
1
votes2
answers31
viewsReceive a date array other than the one chosen
I have a form, where I need to choose the dates, which in case would be multiple. I am using this plugin/Jquery component: http://multidatespickr.sourceforge.net/ My problem is that I don’t want to…
-
1
votes3
answers132
viewsExchange td value after validation
I have the following HTML code <table> <tr> <td class="x">10</td> <td class="x">10</td> <td class="x">12</td> <td class="x">18</td>…
-
1
votes1
answer822
viewsQuestion on how to calculate time difference with special conditions
I’m trying to figure out the time difference between two dates using the Moment.js, but I need to observe some special conditions: Case 1: If you enter a day in a month, it already counts as "a…
-
1
votes1
answer226
viewsMake Vertical slide with scroll and fade and Parallax
I wanted to make a slide like this site: http://www.midtownatlinnovates.com/why-midtown/ , where the information is divided vertically and scrolling down changes the image and info. Someone can shed…
-
1
votes3
answers585
viewsSelecting the VALUE of a select with javascript or jquery
Well, I have the following problem: I need to select the value of a select in the html to execute a loop if in javascript or jquery, how to do ? <select class="input"> <option default…
-
1
votes1
answer69
viewsControllar scroll to go in sections of the site
I have a site with sections. I’m trying to get the scroll to skip to the next section and so on.. I thank you from now on!
-
1
votes1
answer359
viewsHow to write data to the webstorage without overwriting already recorded data?
I created a form and when the user fills this form the data is sent to the local webstorage and from there to a table. However, whenever you write a data in localstorage the previous data is…
-
1
votes1
answer301
viewsTreat exception when replacing string via Javascript
I created a simple Javascript function to replace any string with a link within an area in my html. Until then I pass some parameters and this function replaces in my html and inserted the links as…
-
1
votes2
answers877
viewsHow to create field dynamically with jQuery?
I have a Function that I need to validate what the user has typed, if applicable true enables the datepicker. But the way I did, you’re falling for the method POST of asp.net mvc. There is a way to…
-
1
votes2
answers378
viewsProblem picking textbox value with jQuery
I have a Function that needs to take the value of the textbox to perform a validation and if this validation is true enable datepicker. But it’s not taking value from the textbox. By giving an Alert…
-
1
votes1
answer513
viewsValidation of two selects
I have two camps select, I have states and other cities. I need to select in a select one state, ex: São Paulo and the other select bring only the cities of Sao Paulo.…
-
1
votes2
answers502
viewsIframe from external site
I have a page with iframe of external site, how can I do to be able to click automatically when loading the iframe on a button you have determined texto on the external website? Not exactly classe,…
-
1
votes0
answers28
viewsProblem when using Interactjs
I’m having a problem trying to use as a library Interactjs. At this time the my code, as you can see, you are invoking the files necessary for the correct execution of the example: <link…
-
1
votes3
answers664
viewsMobile dynamic iframe
I need to generate a iframe dynamic by clicking a button on a div for a mobile app only when I try to load it iframe using the method Onload in the Body it does not automatically load and only when…
-
1
votes0
answers35
viewsAutomatically copy the alt attribute by clicking an image
I have an image gallery where the attribute values alt="" are pulled from the database. I need to copy this value automatically when clicking on the image in order not to have to access the source…
-
1
votes2
answers2062
viewsPass values from a table to a modal dialog (JSP)
Good afternoon, you guys! I’m trying to pass values from a table to a modal window, but I’m not getting... I tried something from jquery, but I don’t know what I might be doing wrong... I’ll post…
-
1
votes1
answer162
viewsHow to check items in Hover?
I have a list of elements belonging to a gallery, where the elements outside the Hover will have a new class. The problem is when Hover occurs directly from one element to another and the class is…
-
1
votes2
answers41
viewsFunction does not run 2x
I have a Function selectStep() who receives a onclick per parameter 1 or 2, it spins what was past. The impasse is that I have two Divs Content1 and Content2, both with the same thing. But only the…
-
1
votes2
answers967
viewsError caused by line break in append
In jquery, if I insert the following code, error :: variavel.append('<div class="qualquer"> <div class="subdivs"> conteudo da subdiv </div> <div class="subdivs"> conteudo da…
-
1
votes2
answers737
viewsChange element with jquery
Hello, I have a problem, in the code below I have a table of products, where they have a value (R$) and an input for the customer to choose a quantity. I need that when the customer changes the…
-
1
votes1
answer52
viewsAssign HTML code to a Jquery Alert
I am using this Alert but wanted to insert a text break window.alert("Não existe produto cadastrado no sistema! Para continuar devemos cadastrar pelo menos um produto"); wanted for a line break…
-
1
votes1
answer141
viewsrecover data from a view table in the controller
I have a table that is generated in the View dynamically. From the moment the user selects the products in another table, I need to recover in controller all the ids and quantities of products that…
-
1
votes1
answer242
viewsPHP code does not execute and returns as a comment to HTML
I have a code in javascript calling a file PHP: $.post("subscript.php", { idPost: idPost }, function(response2) { //Joga o resultado no lugar desejado. $("#respostaID").html(response2); }); When…
-
1
votes1
answer161
viewshow to change an image src from another page
Hello, I have an input where it serves as a search bar. By entering a name and pressing enter, a function is activated and performs the following function: function verificaValor(){ var valor =…
-
1
votes1
answer532
viewshow to change an image by clicking on a link
Hello, how do I change the src of an image when I click on a link next? I have a long list of images and I would like to advance according to the amount of images in this folder, rather than by one…
-
1
votes1
answer656
viewsFill in a Dropdown (Select)
I need to create a select In this pattern: <select id="Cidades"> <option></option> </select> Where the user will select its state, and then a jquery will be made that…
-
1
votes0
answers70
viewsAjax does not work with specific button
I have a code that when you click the button it asks for a reason to click. After writing the reason it switches the button and should exchange the information listed below. This code is in Ajax…
-
1
votes1
answer161
viewsScript does not work with external host
My script does not work with files hosted on exetrno host My files are on that host: How do I make them eja run in this script below? <script type="text/javascript"> var resizeOwnr =…
-
1
votes2
answers651
viewsGet the correct Index without duplicating the Select Option
I need to create a select with the days of the week, and upload them when they are already in the database, then I receive in my index the id of the day of the week and I have to leave it as…
-
1
votes2
answers87
viewsHow to not load the page by clicking on the select option?
I have the following select, every time I select some option it reloads the page, so far so good, but I want to make sure that by clicking the option nAtualiza, it just wouldn’t update the page, is…
-
1
votes2
answers781
viewshow to protect access to a php file?
Galea I am using the Jquery auto complete plugin. It works perfectly. I use jquery to call a php file that queries in the Databank. I call him that: $("#auto").autocomplete("Busca/Cadastros.php", {…
-
1
votes1
answer122
viewsConvert String from a div to int and do a mathematical operation
I’m trying to do the following function: <span id="our_price_display">R$ 71,90</span> function calculaParcela(){ var regex = /\d+,\d+/g; var texto = $(".our_price_display").text(); //id…
-
1
votes1
answer220
viewsSend form after user action
I have a form, and a list of actions that the user can choose, depending on the action that was chosen, the user must confirm the submission, leave a message or simply send the form. I have almost…
-
1
votes2
answers7745
viewsHow to check if an element has a class, or is with an "active" class
I used the .toggleClass() in a div, after clicking on a button, activate the class "menu-active", if clicked again, it removes it. So far so good. Only now beyond that, I need something to check…
-
1
votes1
answer40
viewsWorking with Transform3d in jQuery
I am trying to make a function that increases or decreases the size of an object. I use the transform: scale. But my object already uses transform: translated3d to set the position of the same.…
-
1
votes0
answers933
viewsPrint the contents of div with css
I got it with the help of Stackoverflow assemble a script for printing a document, now I’m with a second problem, the script opens the print page without formatting the css. I saw an example right…
jqueryasked 9 years, 2 months ago adventistapr 5,498 -
1
votes1
answer13921
viewschange text of div with jquery
Guys I have an input and a div': <input type='text' id='valor' name='valor'> <div id='valor'><b>R$ 1,00</b></div> Good need to exchange the value of 1.00 for the value…
-
1
votes1
answer156
viewsHow to select Option value with Ajax data return?
I have the following HTML code: <select id="priorities-info" class="form-control selectpicker" data-live-search="true" disabled="" tabindex="-98"> <option value="1"…
-
1
votes0
answers52
views.load() affects website performance
I would like to know two things, and if possible an example. I have a system of comments that after sending and writing in the database and appears without refresh, almost equal to the comments of…
-
1
votes1
answer1183
viewsHow to create Pattern (input mask) with jQuery Validation Plugin?
I need to create a input mask (Pattern) for the type CPF 000.000.000-00 and to CNPJ 00.000.000/0000-00 through the plugin jQuery Validation. What would be the regex to be creating this validation?…
-
1
votes1
answer893
viewsHow to optimize iframe load time?
I have a page with several "iframes" youtube that are taking considerably to load. I wonder if it is possible to decrease this loading time or if it is not possible, how to put an animation until…
-
1
votes0
answers42
viewsReset functions?
On a supposed page where all the content all the site is loaded in dynamic Ivs without the refresh need, when closing one of these Ivs it is possible to reset the Function that added the content to…
-
1
votes0
answers571
viewsHow to make a side menu that expands by pushing the body?
In the style similar to that of this site here: LINK
-
1
votes1
answer275
viewsjQuery does not add "+"
I’m making a shopping cart with jQuery. The cart works like this: It has the products and all the values of each one. It has a field that changes the quantity. It has another field also of freight.…
-
1
votes1
answer596
views -
1
votes2
answers211
viewsAlternative to the Event Trainer that fires on completion
The marquee has been discontinued and the alternative is to implement a css to perform the same text scrolling effect, which is valid. But a need arose to get the moment when the scrolling of the…