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
-
2
votes2
answers564
viewsWhat are the differences between jQuery and jQuery Mobile?
I was reading today about the jQuery Mobile framework and from what I understood it would be for jQuery as Bootstrap is for CSS. I don’t know if I understand it correctly, but it’s doubtful: jQuery…
-
2
votes1
answer37
viewsLength of content returning incorrect value
I have this code to check if the size of the user input is in accordance with some parameters, but the size it returns is always -1 the size of the input content, it would be the case to convert to…
-
2
votes2
answers35
viewsDropdown Hover work just above 1200px
If anyone can help me, I need Hover Javascript to work only at resolution above 1200px, I made the code but it’s not working. $(function() { if($(window).width() > 1200) { $('ul.nav…
-
2
votes2
answers4715
viewsToggle() Effect Down, Jquery
Is there any way to change the direction of Jquery’s toggle() effect? For example, I made a button that when clicking, it shows and closes a div $('.botao').click(function(){ $('.div').toggle(700);…
-
2
votes1
answer134
viewsWhat is the best way to send action(form) or jquery Submit data?
Is there any standard for sending form data today? Use jquery and delete action(form) or validate with jquery and send the data using action(form).
-
2
votes2
answers215
viewsApply the CSS of a child of element A to another element B
It is possible to somehow use CSS rules applied to #elemento > .filho in another element #dots? #elemento > .filho{...} In case I would need <div id="dots"></div> received the…
-
2
votes2
answers60
viewsI cannot print out the values of my Array.
I am unable to print the values added to my Array in the Console. The Console response is empty as if it had not added the values to the Array. Below follows the code and the XML Document. Code…
-
2
votes2
answers165
viewsHow to select elements that have a valid id?
How do I select elements that have an id set? For example, inside the section below I have the following: <section> <div class="div"></div> <div id=""></div> <div…
-
2
votes1
answer260
viewsClose Menu with Slidetoggle
Hello guys I’m with a menu for mobile "burger" and I’m wanting it to close when I click on some link from the menu. HTML code from menu: <div class="menu"> <button class="hamburger">…
-
2
votes2
answers634
viewsInput text of hours!
Good afternoon, I need a team-validated mask where Hours accepts until 23 and minutes until 59 someone could help me ?
jqueryasked 7 years, 6 months ago Leonardo Macedo 743 -
2
votes1
answer243
viewsShoot event or press mouse button
I’m applying an event change in id #estado, this has to happen when I click on the id #cidade. I am working, but I noticed that only occurs when I click and release the button, how do I make it…
-
2
votes1
answer62
viewsForm does not send messages
I have a bootstrap form that I am using jquery to fire. I am using the following code: Form <form class="contact-form" name="contact-form" method="post"> <div class="col-sm-5…
-
2
votes0
answers58
viewsSlide show on jQuery does not work
I’m doing a slide show on jQuery but it doesn’t work, the browser has error in line 2, but the syntax is correct. Note: the same code is being used on another PC and is working normal. //Mostra os…
-
2
votes0
answers74
viewsCall HTTP error ERR_RESPONSE_HEADERS_TOO_BIG
I am submitting a form with lots of information and I receive the following message: ERR_RESPONSE_HEADERS_TOO_BIG Small section of the code: $("#editForm").submit(); I understand that the error is…
-
2
votes1
answer465
viewstoastr does not appear
I am using a form inside a bootstrap modal. It makes a record in the database and returns the message whether or not it has registered. I have inspected the element several times and everything is…
-
2
votes3
answers2080
viewsavoid Ubmit of a form with barcode reader
Well I have the following form: <form name="produto" method="post" action="cadastra.php"> <input name="cod" type='text'> <button type='submit'>FINALIZAR</button>…
-
2
votes1
answer1062
viewsCalculate space between Div and Body
I want to know the space between Div A’s bottom and Body’s bottom. I read about the $.offset(), but this always returns me 0. PS: I only want what appears on the screen. If the body is larger than…
-
2
votes1
answer1285
viewsDisplay input based on a select option
I want to exhibit a input based on the option that I choose through a select. If I select 1 he shows the input 1, if I select 2 he shows the 2 but gives a hide() in the 1. Currently the code is like…
-
2
votes2
answers1119
viewsHow to put the background effect fixed and on the whole screen?
I am new as Frond-End programmer and my boss wants me to put a fixed background effect as shown in the model below;…
-
2
votes4
answers118
viewsWorking with Array and selecting a specific Input
In my studies in JS I have the following code: <select name='options'> <option value="a">A</option> <option value="b">B</option> <option…
-
2
votes1
answer108
viewsRegex does not work on Chrome
I have the following script in which I use a jquery to validate a regular expression that matches the filenames for upload: $(document).on('change', "input[type='file']", function() { var validaFile…
-
2
votes3
answers1302
viewsreceive two houses after the comma
I need to get a cash amount and I’m only getting one house after the comma. example 75.50 I get 7.5 and 7 I need to receive 7.00; I am using Jquery;
-
2
votes3
answers1993
viewsExchanging TAG with Javascript
Is there a way in JS/Jquery to change a tag in HTML? For example, I have a: <div></div> And I want, let’s say I want it to become a span: <span></span> In short, to change:…
-
2
votes1
answer592
viewsCSS attribute in innerHTML, how to use?
I have a span that depending on the value I wanted it to be red for divergence and blue if the data is acceptable, I tried this way: getElementById('span').css('color', 'blue').innerHTML =…
-
2
votes2
answers3176
viewsbase64_encode in javascript
I have an image in the database saved in blob format, I have to use the base64_encode in php before returning the ajax request and this slows down the process on the server side. Can do or has any…
-
2
votes1
answer261
viewsjQuery UI autocomplete only works once
I am working on a functionality of a Rails application where we use a Gem call Best in Place, which provides the possibility of inline editing of model attributes. But there was a need to use jQuery…
javascript jquery ruby-on-rails jquery-ui jquery-pluginsasked 8 years, 11 months ago Pedro Vinícius 1,870 -
2
votes5
answers1346
viewsHow to get all HREF and SRC values from a code
Fala ae personal, I need to get all the values href and src of the tags, link, a, img and script, so I developed the following code: <html> <script> $(document).ready(function() {…
-
2
votes1
answer40
viewsHow to detect download event in audio and video tags?
I have the following code in a JS file, which I use to detect when someone "plays" or "downloads" audio and video files. $("audio").on("play", function() {...}); # Funciona $("video").on("play",…
-
2
votes2
answers398
viewsSelenium Python
I’m having trouble manipulating popup. Apparently, the popup code is generated in real time, not being captured by Selenium. In fact, it is possible to see the use of jQuery, I did not detect Ajax,…
-
2
votes1
answer822
viewsUpdate in more than one line
I’m trying to ride a update thus: UPDATE cad_vendas SET canal ='9', parceiro ='9' WHERE cpf_vendedor ='CPF_VENDEDOR' and status_proposta_producao ='90' and forma_pagamento <> ''; but he won’t…
-
2
votes1
answer48
viewsHow to capture a jquery element and leave it changed in a new variable without changing in the view?
For example, I want to take the DOM element, and then change, without it changing the behavior in the view: //aqui pego o conteúdo da html var content = $('.content').get(0); //aqui eu reescrevo,…
-
2
votes2
answers1683
viewsPosition cursor at the end of text by clicking input
It has to do with every time I click on the input the cursor goes to the end of it? Notice that in this image he is before the 1 and wanted that every time you click on the input he goes to the end.…
-
2
votes1
answer1167
viewsHandle JSON data coming from a jQuery datepicker request with ajax
I need to create an agenda.. I have a datepicker and a fixed table beside with schedule that start from 08:00am until 19:00pm and when I click on a datepicker day it returns to me all the queries of…
-
2
votes1
answer509
viewsRun function when closing javascript tab
Opa, I need to execute an ajax when closing the tab, is that possible? I tried to: window.onbeforeunload = ConfirmExit; function ConfirmExit() { $.ajax({ url:'salvar.php', data:{usuario:1,…
-
2
votes1
answer568
viewsHow to make a Modal Portfolio appear from left to right?
Portfolio Modal, example: http://ironsummitmedia.github.io/startbootstrap-freelancer/ I want to modify the animation of the Modal Portfolio (bootstrap). I want it to appear from left to right…
-
2
votes1
answer245
viewsSend data from one modal to another modal
I have a modal call details, I have the following data on it: <input type="text" class="form-control" id="id" name="id" required> <input type="text" class="form-control" id="nome"…
-
2
votes1
answer56
viewsProblems with . clone() to radio Buttons
I’m making an "add" button that every click adds a div com Radio Buttons below the div itself. I have trouble clicking on the radios that when I click on of some added line and click on another line…
-
2
votes2
answers138
viewstake array time with jQuery?
I have that code: var fhora = function(horamin, horamax){ var horas = ["11:20", "04:40", "22:30", "07:00"]; return horas; }; how do I return only the hours that are between 05:00 and 23:30?…
-
2
votes4
answers3472
viewsReplace special characters and uppercase letters
I have this code that copies everything you type into one input to another, I want when it copies to the other input replace special characters, spaces with "-" and minute letters. How could I do…
jqueryasked 7 years, 4 months ago Wagner Martins Bodyboard 698 -
2
votes1
answer294
viewsTinymce - How to turn it into a required field?
I’m using a field of TextArea with the TinyMCE for text posting and would like to know if it is possible to add some validation so that it does not accept blank values. I’ve tried to add the…
-
2
votes3
answers7978
viewsChange`id` of <Form> javascript or jquery element
I need to change the id of a form in HTML with javascript at runtime. I’m trying with Jquery and Javascript, but it’s not working. jQuery(this).prev("form").attr("form", "form_modulo"); or…
-
2
votes1
answer1566
viewsTransforming grids into Carousel (slider)
I would like to know if it is possible to make a group of cols-* stay as carouel/slider only when less than 750px. First of all, for those who do not understand bootstrap well, both grids and…
-
2
votes1
answer297
viewsOpen email client with attachment file
I am trying to open my email client (for example Outlook) with the following: <a href="mailto:[email protected]?subject=Assundo email&body=Corpo de email"> Send mail</a> Now I’d…
-
2
votes1
answer27
viewsFiring a method . scroll on mobile device
I am trying to use Jquery’s . scroll method as follows, when the user scrolls any change happens. $(window).scroll(function() { $('.exemplo').css('color', 'red'); }) .exemplo { height: 250px; width:…
-
2
votes3
answers73
viewsas by values within objects
I have a "span" with properties date: <span data-label="Name" data-icon="user"></span> And in the script I have a variable with objects: var widgets = { options: { label: null, icon:…
-
2
votes1
answer221
viewsThe photo appears when selecting it by an upload field
Colleagues. I don’t know if my title was clear, but I’m having a hard time getting a user mode by selecting the photo by the upload field, it will appear under the upload field when selected, but…
jqueryasked 7 years, 4 months ago user24136 -
2
votes1
answer40
viewsCount only new regsitros at the bank and submit as notifications
I have the following question, I need to return in a panel that there are records that are not being shown on the screen. Type I have 10 records being displayed, are registered 2 more so I need to…
-
2
votes3
answers372
viewsHow to catch a class with Jquery array?
For example, in HTML, I have this: <ul class="benefits"> <li>Finalização rápida e fácil</li> <li>Múltiplos endereços de envio</li> <li>Acesso fácil a seu…
-
2
votes1
answer1024
viewsResize image with Javascript
It would be possible to build with Javascript an image manipulation interface similar to that of Word, which has the option to enlarge the image or decrease with the mouse?
-
2
votes1
answer1477
viewsHow do I rotate an image with jquery?
Good is the following I have the following code: <head> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> </head> <img…