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
-
3
votes1
answer320
viewstoastr.js disabling the required HTML5 property
I am using toastr.js to display form validation messages, but when using this plugin it disabled all my inputs that had the property required. My code: <!DOCTYPE html> <html>…
-
3
votes3
answers5281
viewstake the value of a <td> by clicking on a checkbox of the same <tr> jquery line
How do I get a value from a <td> by clicking on a checkbox that is in the same <tr> in jquery Follows my code: HTML <table style="display:none;" id="tableTime"> <tr> <td…
-
3
votes2
answers933
viewsSum/multiplication of dynamic and total inputs in R$
Good Afternoon, I need a great help, I’m caught in a problem that apparently should be very easy! but I’m not managing to evolve. I have a code with the following fields: In my script consists of 5…
-
3
votes2
answers119
viewsWhat is the difference between # and #! in HTML 5?
What is the difference between # and #! in the href element attribute <a>? <a href="#">link 1</a> <a href="#!>link 2</a> NOTE: I am using Jquery and Materialize…
-
3
votes4
answers9024
viewsHow to make the 'focusout' event an input?
I want to make an input appear when I click on label, when I click out of the input, ie take the focus of such, I would like it to disappear. HTML: <form action="/" class="search">…
-
3
votes2
answers374
viewsSelect and view data with Ajax
I got the following ajax: var id = $('#idCliente').val(); $.ajax( { url:"/Administrar/chamadas/ajax/endereco/" + id, dataType : 'json', success:function(result) {…
-
3
votes1
answer246
viewsHide submenu by clicking another
I wish that when I clicked on a submenu item, what was active was hidden. I found a similar script but I had a hard time adapting. I am using the following script for the onclick submenu Javascript…
-
3
votes2
answers322
viewsDIV only clickable if RADIO is marked
I wish my <button id="bottaaoPA">Comprar</button> was only clickable if the radio were marked. Code: $(function(){ var contador = 0; $('.pa').click(function(){ if(contador === 0) {…
-
3
votes2
answers340
viewsAdd an "active" class in the link according to the page accessed?
I’m putting together a theme for Wordpress, and need to add a class active in anchors, the operation is as follows: I recover the URI of the current page and compare with the text/value contained…
-
3
votes1
answer83
viewsI need help to create a type lock pattern for Android using the patternLock plugin
I need to create a design password pattern for a mobile maintenance site, so that when a customer opens a service order and if your phone has screen lock it can leave recorded and if the technician…
-
3
votes4
answers13696
viewsDisplay message and hide in a few seconds
How to show a notification when entering the site and disappear after a few seconds with jQuery? I tried something but I couldn’t. JSFIDDLE: http://jsfiddle.net/sunnypmody/XDaEk/ Code: <!DOCTYPE…
-
3
votes1
answer217
viewsUpload mysql query to list
I am making a query in a database that returns a list of users, which I am printing in a table. I would like to turn this query into a list and then insert these users into another table This is how…
-
3
votes1
answer686
viewsValidate field with integer value, in decimal format (check if value is less than)
Hello, my question is about a field validation for decymal value. If the value is less than 500,00 I show an error message, otherwise I pass to the second field, so the person type the value already…
-
3
votes3
answers1863
viewsGet original image dimension with Javascript
I have an image uploaded to my HTML page inside tag <img>, there is some way to know size of her original archive by Javascript? Let’s say I want to give one console.log(larguraImagem,…
-
3
votes1
answer195
viewsMenu for mobile
I’m making a website for the company where I work and I made a Multilevel menu. My problem is that when I open one of the levels, the last item does not appear and when I scroll what moves is the…
-
3
votes1
answer63
viewsHow to transform the text of a div into lines with <p>
Suppose you have one div, and that it has an enormous text, and you would like each line to be transformed into <p>. How would it work? What I really want is, at the beginning of every line of…
-
3
votes4
answers613
viewsChange the position of a <li> to the first position
I have the following <ul>: <ul class="opcoes"> <li id="">Escolha a opção abaixo</li> <li id="1">1</li> <li id="2">1</li> <li id="3">3</li>…
-
3
votes1
answer2338
viewsDigital Line Boletus Field Mask
Would anyone know if there are any masks for the type line of billets? I have a screen where the list of boletos of a client is displayed and I also display the entire typeable line, without points…
-
3
votes3
answers1382
viewsHow to put a submenu, on a menu I already have?
I’m editing the blog, and I wanted to do a menu with submenus, but I don’t know exactly what makes it happen. I tried googling, but I got nothing. Only css tutorials appear, but nothing specific…
-
3
votes3
answers729
viewsGet font size in HTML
I need to get the source information that is configured in the HTML tag with Jquery. I know to get the font-size just use: css: p {font-size: 12px;} JS: var tamanho = $("p").css('font-size'); The…
-
3
votes3
answers833
viewsJquery modal does not open
I’m trying to implement a modal, but I’m not getting it open, someone could help me. <script src="~/Scripts/jquery-2.2.0.js"></script> <script…
-
3
votes1
answer26
views.each() ends when the div is closed
I have the following problem, I have Divs that have a dynamic amount of Divs inside. <div class="grid-f"> <div class="col-4"></div> <div class="col-4"></div> <div…
-
3
votes1
answer367
viewsJavascript - Combination of variables - Filter
I’m in need of a tip. I’m not a programmer, but I like to risk automating processes, sorry if the question is too basic. I’m working with the Google Maps API, and at a certain point I need to…
-
3
votes2
answers992
viewsLoad a combobox by selecting another combobox
When returning the values in the combobox, it is returning as Undefined: include 'relacao-cidades.php'; And just below the combobox I intend to load the states according to the selected city:…
-
3
votes1
answer2292
viewsHow to get the value of the value and also the name of the checkbox at the same time as selecting jquery
I need to get the name of checkbox selected as soon as I click one of the checkbox that exist on the page. The value I already got it, but I need to also take the value of name. Could someone help…
-
3
votes3
answers549
viewsHow to filter through attribute on an object / array
I believe it’s a simple question but I’m not finding a solution to my problem. Example: Object: {projectId:"1" name:"Projeto A" image:"imagem.jpg"} {projectId:"2" name:"Projeto B"…
-
3
votes1
answer716
viewsHow to get the values of a table?
My doubt is very basic: I have a table, need to store in a variable all values of the line that was clicked, I am trying it with this method below but the result is "Undefined". What could be wrong…
-
3
votes1
answer178
viewsHow to use . toggle() to exchange animations
I’m trying to alternate the animation of a div using .toggle(), but this div, which is the first gray ball, simply disappears after I click the button (orange ball), instead of returning to its…
-
3
votes1
answer997
viewsDisable Radio Button from a table based on an input value
I have a table whose first column is an input and the rest of the columns are a radio group Buttons. This first input can only be given the values from 1 to 4. Radio buttons start disabled, and can…
-
3
votes2
answers124
viewsIs there any way to toggle with attributes in jQuery?
In the JQuery, we have a function called toggle which allows us to switch between the element being visible or not. And the function toggleClass, which toggles between whether or not to include a…
jqueryasked 10 years, 1 month ago Wallace Maxters 102,340 -
3
votes3
answers874
viewsHow to count number of clicks on increase fonts button in accessibility bar?
I am creating an accessibility bar and in it has the options to increase and decrease the source. Follow the button code: <button type="button" id="btnAumentar">A+</button> <button…
-
3
votes1
answer81
viewsWhat does cardinality mean in this case ? (jQuery Inputmask)
I have the following excerpt: $('#elemento').inputmask({ mask: "*{1,255}", greedy: false, definitions: { '*': { validator: "[A-Za-záãâÁÂÃéêẽÈÊẼìîĩÌÎĨòôõÒÔÕùûũÚÛŨ ]", cardinality: 1 } } }); The…
-
3
votes1
answer1652
viewsCheck that reCAPTCHA has been marked
I am using an email form in PHP with POST method and use Google Recaptcha. I need to check in Javascript or jQuery, if reCAPTCHA was marked only then enable the send button. The current code: var…
-
3
votes2
answers3023
viewsHow to lock certain keys in an input using Javascript?
Guys, I have a javascript function where I allow only numbers, comma (,) and hyphen (-) in an input. The problem is that I can type as many commas (,) and hyphens (-) as I want. I wanted to know how…
-
3
votes1
answer398
viewsInput[number] accept numbers only in Firefox
How do I make the input[number] field accept only numbers in Firefox? In Chrome, Opera and Edge works perfectly, but in Firefox the[number] field accepts letters and spaces. <input type="number"…
-
3
votes2
answers1323
viewsGet CSS by Javascript
Is there any way to get the list at all CSS applied to an element by Javascript? Example: Let’s say I have the following element HTML: <div id="mega">Content</div> I also have the CSS:…
-
3
votes1
answer659
viewsHow to reveal items when arriving on a particular scroll
I would like to know how to do the effect of revealing items when the scroll of the page reaches the element, example of this site: http://www.metodistapirassununga.org/ The effect is on the blocks…
-
3
votes1
answer760
viewsDownload image only by its URL
I have this requisition: var exportUrl = 'http://export.highcharts.com/'; $.post(exportUrl, d1, function(d1) { }); Since exportUrl+D1 becomes the url of my image generated by the server. how do I…
-
3
votes1
answer1157
viewsHow do I ask permission from the user, to get his location? showing an Alert with the options allow or not allow.
How do I ask permission from the user, to get his location? showing an Alert with the options allow or not allow.
-
3
votes1
answer111
viewsDiv’s coming and going
I have the following div’s structure <div id="box"> <div id="1">1</div> <div id="2">2</div> <div id="3">3</div> </div> And the following css: #box {…
-
3
votes2
answers3598
viewsHow to consume webservice (WSDL) mails with javascript
I would like to use this web-service provided by mail for a small personal project (from the beginning, only return address by the ZIP code):…
-
3
votes2
answers971
viewsProblems with calculations in Javascript
Well I edited the question, because I located the problem. I have a javascript responsible for making calculations with the values in the input, and I have a plugin Jquery Mask or Maskmoney to make…
-
3
votes1
answer51
viewsIs there a performative difference between on chained with on with multiple events?
I have always used the on with multiple events with the thought that it would simplify my code and make it easier to understand, but from time to time I came across several plugins using the on in a…
-
3
votes1
answer499
viewsAjax call webmethod with friendly URL
I don’t know if it’s a frequent question, or something that’s not possible. During my studies I realized that it was possible to do this with PHP, but I didn’t see anything with ASP.NET Web Forms. I…
-
3
votes1
answer47
viewsProblem with . find()
I’m trying to find a li with a certain class (selected), however, I haven’t been able to find the id hers. Here’s the code var slide_act = $(".bull").find("selected").attr("id");…
jqueryasked 8 years, 3 months ago I_like_trains 1,430 -
3
votes1
answer78
viewsLink click function is not called
I’ve had a similar problem, and that’s because the function is built before the button is created. Now I made little tertinho after I give an append on my page call a function on click. That’s my…
-
3
votes2
answers8938
viewsFunction calling $.getJSON() returns Undefined
I’m trying to get the data from a JSON through javascript with Jquery’s getJSON function, but it’s returning Undefined. Follows the code: $(document).ready(function(){ $("#log").append(pegaPrev("São…
-
3
votes0
answers192
viewsHow do I control tabs open by my software with Javascript and localStorage?
My question is how to do a tabbed control, open from browsing my software, with Javascript and localStorage? For several reasons that do not come to the case my web software works with the opening…
-
3
votes1
answer1325
viewsHow to create a function button to export Datatable to (.csv) in jQuery?
I have the following button: $(document).ready(function() { $('#example').DataTable({ "dom": 'T<"clear">lfrtip', "tableTools": { "sSwfPath": "/swf/copy_csv_xls_pdf.swf" } }); }); <script…
-
3
votes1
answer1690
viewsDatepicker is shown behind the modal bootstrap
I have a modal in bootstrap: <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close"…