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
answers192
viewsTraversing JSON
I’m having a little trouble performing a function. I was wondering if you could help me? Well, I need to do a click navigation and each level is stored in a json. A structure similar to this one…
-
1
votes0
answers62
viewsModal form with tabs does not open combo
I set up a modal form with two tabs, and the fields of the first tab work perfectly, but in the second tab the combobox are coming with the style=display: None; and this is being done alone, does…
-
1
votes3
answers663
viewsKeep selected option dynamically loaded
I need to keep the option chosen in the combobox after the page is submitted, I have a function that does this, but only for Estaticas combobox, for dynamic combobox it does not work. I’m already…
-
1
votes1
answer339
viewsPerforming checkbox checking with jquery
I would like to know how I can complement the code below to have how to return values in checkbox mode the problem and that I need this check to be performed in the following way keep the array…
-
1
votes1
answer934
viewsInput required attribute does not work after using jquery
Hello, When using jquery to disable the Submit button after being sent once the required attribute in input no longer works. HTML <form id="ajax" action="#teste" method="POST"> <p…
-
1
votes0
answers65
viewsJquery - Update list by ajax
I have an ajax that is called every 10 seconds by a setInterval, it gets a json and when I delete an item from the json I need the item to sum up from the ajax listing as well, the code to remove…
-
1
votes1
answer737
viewsHandle jQuery array objects
I have a read that receives various values, they have the same class. I need to take these values and pass to Hidden fields to send via $_POST to a PHP page. I was able to bring the data I need, but…
-
1
votes2
answers1307
viewsUse Angularjs to pass parameter to Jquery
I need to change my web system’s Alerts template. For this I am using a Jquery plugin, however, I need to pass a parameter to my Jquery function that this, would be my model that is already used in…
-
1
votes1
answer1611
viewsTake the value of a li and create an Hidden input with the value when the li is clickada
Good morning, gentlemen, I’m having a hard time making a move. I want that when clicked on li, it add in div #form an input type Hidden with the value of li. and that this happens only when clicking…
-
1
votes0
answers35
viewsRun local files inside a frame in a modal
I have this code, an Asp function: sub montaContrato() %> <!--<div id="dialog1" title="Diálogo Modal" hidden="hidden">Este é um teste de Dialogo Modal usando JQuery-UI</div>-->…
-
1
votes1
answer60
viewsJquery Scroll Smoth
I have the following JS code: It is applying a Smooth to scroll to all elements with the reference "#" when I click. JS $('a[href*=#]').click(function() { if (location.pathname.replace(/^\//,'') ==…
-
1
votes2
answers763
viewsPage size equal to Iframe size
How do I make a page that is running inside an Iframe to have exactly the Iframe dimensions? My Iframe has 700px X 500px, but the page that is running inside it occupies half of Iframe or less and…
-
1
votes3
answers17426
viewsHow to pass javascript variable value to php?
How can I move to a variable php the value of a select, whenever a different option is selected. I tried as below, but returns me [Object Htmlselectelement]…
-
1
votes2
answers46
viewsElement outside the dialog
How do I display a ul/div that is inside the dialog? Note in the bottom right corner of the dialog <div id="dialog"> <div> <div> <button id="status-candidato">Run last…
-
1
votes2
answers281
viewsEvent . on('click', does not work on input containing data-Md-icheck
Hello, in my role has the event .onClick that should activate when marking the checkbox, but when I use the data-md-icheck it is ignored by the function. <input type="checkbox" data-md-icheck…
-
1
votes1
answer430
viewsjQuery, how to change the z-index of datepicker
When I make one $('#man_dia').datepicker(); the tag with id='man_dia' is just an input, and jQuery alone inserts the other elements into the DOM, I even get the id that jQuery generates to change…
-
1
votes1
answer47
viewsRun jQuery to select Requester
I got the following jQuery: function clienteChange() { var id = $('#idCliente').val(); $.ajax( { url:"/Administrar/clientes.endereco.php?id=" + id, dataType : 'json', success:function(result) {…
-
1
votes1
answer4540
viewsHow to change the position of an html element with javascript?
I want to make the following change of position, I have a div and inside it other div’s for example: <div class="div-principal"> <div class="div-1"></div> <div…
-
1
votes0
answers345
viewsModal with database log loaded for editing using PDO
How to bring bank registration directly within a modal using PDO? Register using a modal I can, only I can not do the editing. In normal mode the records come good but when I click the EDIT button…
-
1
votes1
answer24
viewsHow to delete a Dialog from the data recording process
I have a legacy system of register control and the same is working perfectly in what concerns the recording of data in the database, but I’m trying to adapt the same and I’m not getting. The current…
-
1
votes2
answers32
viewsRegex in javascript
How would a regex take only numbers and / in a string. Example: Start date: 08/29/2016 Result: 08/29/2016
-
1
votes1
answer1150
viewsHow do I return to the same place on the page after clicking the back button?
I am developing a portal, there are several news, when I click on one of them I am referred to a new page that treats this subject in its entirety, my doubt is the following, i would like that after…
-
1
votes1
answer814
viewsJavascript Progress Bar
Hello people how to make progress bar in javascript equal to the image…
-
1
votes3
answers289
viewsSelect SELECT field with jquery
I’m using the remote .find(input[type='text'],input[type='url'],input[type='radio']) , to find form fields in a form. would like to search for fields <select> What notation do I use in .find()…
-
1
votes1
answer103
viewsShow widget and hide
I have a system of Alerts where the div where the Alerts are with diplay None , so when a new Alert appears in my js I do a togle to appear that Alert on the screen like this $("#alerts").toggle(…
-
1
votes2
answers365
viewsAdd attribute to dynamically created object
I’m trying to add a data-id for objects that will be created dynamically, well the point is that I want to do it right when the document or my object is loaded, without the need to click etc, see…
-
1
votes1
answer405
viewsHow to load a url inside the modal bootstrap?
Hello folks would like to address a bit how to load content (html) from a url into a modal bootstrap.
-
1
votes1
answer768
viewsValidate ZIP code and populate fields automatically jquery validate
How can I validate a zip code and fill in a field, for example the one in the city, using jquery validate? For example: the field (input) that the user would fill the city would be "disabled" and…
-
1
votes0
answers158
viewsProgress bar similar to youtube
Does anyone have any notion of how to make a progress bar similar to youtube with loading according to the time of the requested page?
-
1
votes0
answers957
viewsSend input file value via ajax without form
I need to upload images inside a form. I wonder if it is possible to pass the parameters of the image upload form via ajax outside the general form? If yes, how would I do? I tried some ways, but…
-
1
votes1
answer842
viewsCustomer search by Name/Phone/Cpf Javascript/C#
I have a page that lists client, and I need to do a name search, I have the method that does the problem research and how to integrate it with the front-end, I looked for examples on the internet…
-
1
votes2
answers149
viewsGet multiple field values
How do I in each of a form containing input and select. The post of this form is in json with ajax. My script today takes the values of 2 input thus: var name = $('#news-nome').val(), email =…
-
1
votes2
answers402
viewsCalculate select field values from a form
Good afternoon to all. I need some help from you. I have the following select Multiple: <select id="precoFruta" multiple name="valores"> <option value="1.5">Macã - R$1,20</option>…
-
1
votes0
answers33
viewsCaptcha script only running in one form only
Good afternoon, I’m having a problem with a code. on the website contacts page, by default it brings the information of the parent store, however I have a dropdown, where the customer selects the…
-
1
votes0
answers38
viewsCreate padLeft function with keyup
I am trying to create a function where the user informs a 6-digit number + the year For example: If I type: 12016 => 000001/2016 If I type: 122016 => 000012/2016 If I type: 1232016 =>…
-
1
votes1
answer24
viewsFadein as the browser descends
I’m having a little problem, I think it’s more logical. Here’s what I’m trying to do when I’m rolling the site down. $(function(){ $(window).scroll(function () { if ($(window).scrollTop() >=…
-
1
votes2
answers552
viewsjQuery - create a jQuery element ( create a tag ) from a string
I have done to create an element ( a tag ) the following code: var b = $('<div>').css('color','red'); This way up I will have a div with the red color text ok, now is the following. I’m…
-
1
votes2
answers1304
viewsCatch event click on jQuery autocomplete value
I’m developing a function in Jquery that uses the component Autocomplete where I search the company name and change the company name in another field. Example: Field1 (autocomplete) passes…
-
1
votes1
answer324
viewsHow to manipulate an element with jQuery when they are at the same hierarchy level?
echo '<div class="servico">'; ?><p class="servico_title opensans fw700 fs16"><?php the_title() ?></p><?php echo '<img src="'.UP.'/2015/08/enfeite_serv.jpg"…
jqueryasked 9 years, 3 months ago Marcos Vinicius 7,188 -
1
votes2
answers298
viewsJquery - Next div when clicking on a link
I have 2 Divs and when I click inside a link inside the 1st div I need to get the value of the 2nd div, how do I do this? HTML: <div class="vei"> <span class="download"><a…
-
1
votes1
answer34
viewsDoes using libs as jQuery negatively influence a page’s loading performance/time?
I say because she uses many methods... This influences the loading of the page? Because I understand that the ranking of search engines takes into account the loading time of the site. So, a system…
-
1
votes2
answers992
viewsPassing Parameters from Multiple Checkboxes to a Jquery Variable
Hello, I would like to know how I do to take the values of the value field of several checkboxes selected and save in a variable jquery separated by commas, but without using the id field, since it…
-
1
votes1
answer159
viewsMask for hour 24:00
Good evening, everyone. I would like your help for a problem. I have a field in my form to receive time. But what I have found few validate. Most do so: When you type 24:00 it turns to 00:00 ... but…
-
1
votes2
answers47
viewsEnable fields in Jquery
I have the following fields: <label class="control-label">KM</label> <input class="input-small" style="width: 50px !important;" type="text" name="km" value=""> <label…
jqueryasked 9 years, 3 months ago Sr. André Baill 6,946 -
1
votes4
answers424
viewsRequest with ajax
In my system I have an email sending module I send it through ajax. shipping to approximately 300 people on the same request. The uolhost server supports sending 150/hour so when sending 150 I give…
-
1
votes3
answers1782
viewsEnable and disable an event without deleting and recreating it
Is there any way to disable and activate an existing event in an object? Example, I have an event in an element <img onclick="foo();"> On this same page, there is an action where, while…
-
1
votes1
answer367
viewsset position of scrollbar in an iframe
I have a #iframe page, and when the page loads, I need the iframe scroll to slide horizontally to the end (to the right). I tried several ways but so far nothing.…
-
1
votes1
answer354
viewsAutocomplete with jQuery and Django
Hello, I did a search on the site, but did not find, if anyone knows a link that already deal with this subject, please post. Next, I made an autocomplete in a form of Django with jQuery and…
-
1
votes0
answers270
viewsPHP banner with Flexslider
I am creating in PHP a banner display with the use of Flexslider. But when I load the example page I’m testing, nothing shows up. What could be wrong? The php file, images and flexslider.css,…
-
1
votes2
answers275
viewsHow to use jQuery’s reverse function to undo something?
I am using the code below to apply an effect and undo as soon as the mouse is removed but it does not seem to work and shows no error message. I am using version 1.12.4 of jQuery.…