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
votes1
answer161
viewsjQuery File Upload - Angularjs
I have moved a site from one server to the other. I am using this tool to upload files: here. Now on the new server, when selecting more than one file I cannot upload the image, that is, it is not…
-
2
votes3
answers3702
viewsAuto-click when opening site
Yesterday I did that question, and it all worked out. What I need is that when I open the site directly on the www.meusite.com.br link/test it opens exactly where the "test" is, I used scrollTop for…
-
2
votes1
answer413
viewsInsert link in Fancybox popup image
How to insert a link in the image that opens (popup) in the fancybox after clicking? Excerpt from the HTML code: <li> <a class="fancybox" rel="group" href="imagem_grande.jpg"…
-
2
votes1
answer426
viewsConfiguring jsTree for AJAX
I’m using the plugin jsTree, trying to make you seek the information by AJAX. In the server side I have four tables on the bench, each one a tree level. Tabela1 -Tabela2 --Tabela3 ---Tabela4 Making…
-
2
votes1
answer354
viewsCancel Javascript/Jquery event queue
So, I have a loop that will awaken some 10 functions that are AJAX requests, in the functions, which encompasses AJAX requests is a setTimeout(), what happens is, the loop is done on the hour, and…
-
2
votes2
answers392
viewsReduce image and center
I have an image that I bring from the database and put an IMG tag in the size of 960px by 480px. I need to resize it to 470x160. I need it to be resized by the length and the leftover height to be…
-
2
votes2
answers194
viewsRetrieve jQuery instance within an iframe
I need to recover jQuery instance embedded in my iframe, as we know there are several ways to recover jQuery instance, with references $, jQuery, window["$"], window["jQuery"]. The problem is that…
-
2
votes3
answers302
viewsFind the highest value ending ID
I have an html structure like this: <div id="container1"> <p>Texto</p> </div> <div id="container2"> <p>Texto</p> </div> N vezes este bloco <div…
jqueryasked 9 years, 7 months ago Joao Nivaldo 1,229 -
2
votes1
answer208
viewsJavascript loop
I need when to delete a row from a list. it changes an input items. Example: linha 01 linha 02 linha 03 if I delete line two currently it gets: linha 01 linha 03 but I didn’t want it that way I need…
-
2
votes1
answer147
viewsHow to search with . serialize()
I have this Search/Serialize Jsfiddle, only I didn’t want him to take the name of select, only the value of option and search. It can "ignore" the name and use only the value ? Here’s the code: var…
-
2
votes3
answers14327
viewsCount amount of LI within a UL
Show amount of LI within a UL. I have the following HTML: <ul class="rodapeUlCat margin-top-25"> <li><h3><a href="/paginaSYS">tituloMenuSYS</a></h3></li>…
jqueryasked 10 years, 1 month ago Felipe Viero Goulart 3,693 -
2
votes1
answer1425
viewsHow do I use Node.js to run a PHP page?
My case is the following: the microcontroller sends data using GET to the server, it saves it in the Mysql database and tests if it needs to trigger the alert. This alert is made with a PHP page…
-
2
votes2
answers828
viewsSelect input text by its value
I would like to select an input type text field that contains the word "hi" typed in it. Assuming my input is this: <input type='text' id='texto' /> I saw that it is possible through:…
-
2
votes1
answer536
viewsFind out which Primefaces component performed an action using jQuery function
I want to make a refactoring in my code, and for that I need to get the id of a component that suffered an action. My target would be that I have two datatables, and wanted to take the id and from…
-
2
votes1
answer102
viewsCharacter count within separate paragraphs (jQuery)
How to use jQuery to sum characters in different paragraphs? Example: <div id="test"> <p>Lorem Ipsum</p> <p>Lorem Ipsum</p> </div> Note. Cannot add id and class…
-
2
votes3
answers1196
viewsgetJSON does not work
it does not return the success value, but in the error it says it was all right $.getJSON( "en-us.json", function( json ) { console.log( "SUCESS"); }).fail(function(m) { console.log(m); }); Imagery:…
jqueryasked 9 years, 7 months ago Vinícius Lara 3,750 -
2
votes2
answers675
viewsHow to cancel event click on site
I use a plugin jQuery which generates a hidden side menu and when clicking the button, the menu appears, shifting the content of the site to the side. The problem is that the site elements remain…
-
2
votes2
answers1539
viewsload a specific form according to the selected radio button
Assuming I have two options at the beginning of a form, option A and option B <label>SELECIONE UMA OPÇÃO</label> <form> <label><input value="A" name="opcao"…
-
2
votes2
answers936
viewsAdding values of selected input’s within another input
I have for example 4 input, each input has a specific value ex: *input com os valores <input type="radio" value="1"> <input type="radio" value="2"> <input type="radio" value="3">…
-
2
votes1
answer478
viewsAdd characters before each number
I have a string in a textarea that will be in this format: 2199998888 2188889999 2455556666 2566665555 That is, phone numbers with line break to separate them within the textarea. My need is to…
-
2
votes1
answer116
viewsPlace checkbox on only two items - JSTREE
I would like to know how I do so that the us Child 1 and the Child 2 be of the checkbox type where I can check and uncheck? Note: but only these two us. Code Jsfiddle…
-
2
votes1
answer252
viewsReturn element values without a certain class
I have a list of images, and I need to return a value of these images to then assign some commands. The problem is that in some <li> there will be a class called off and needs to be…
-
2
votes2
answers3174
viewsLimit Input to a range of values
I am creating a small shop that will sell shirts of an event and the sale of shirts will be limited to a maximum of 4 shirts per person, so I need that in the field where the number of shirts that…
-
2
votes1
answer3043
viewsMysql query by loading table with search button
I need some help. I need to make a Search button, get the parameters of some selects(combobox) and update a table below the filters. But I don’t quite know how to do this, to press every click on…
-
2
votes1
answer1127
viewsOpen modal popup in another . cshtml file
Arquivopai.cshtml is as follows: <html> <head></head> <body> <!-- Nesta div pretendo abrir minha popup --> <div id="popup"></div> <!-- Com este link…
-
2
votes2
answers79
viewsHow to resolve ids problem in jQuery?
I have two almost equal forms, one for individuals and one for legal entities and these forms are hidden and appear as the result of a jQuery().change determining whether the form is for a natural…
-
2
votes1
answer96
viewsProblem while removing readonly in Internet Explorer
I have a function that removes the readonly of a field after focusing the same: $input.removeAttr('readonly'); The problem is that only in Internet Explorer even after removing readonly it does not…
-
2
votes1
answer38
viewsHow to remove 20 pixels from an element with Jquery
I need to re-calculate the size of an INPUT TEXT element because a button of 20 pixels will be dynamically added next to it. I tried that and it didn’t work $(this).width(function () {…
-
2
votes2
answers1343
viewsHow to know which form id a function is being sent from?
How do I know which form id is sent from which function? The function is buscar_cidades() and is present in 2 forms Pessoa Física and Pessoa Jurídica. How to know in jQuery which form(id) is being…
jqueryasked 10 years, 1 month ago Marcos Vinicius 7,188 -
2
votes1
answer141
viewsEnable Javascript within a Fancybox
I need to make a slideToggle in the window of a Fancybox. The normal method of catching the (elemento).click(functiom(){...}) I know it doesn’t work. I just know that we should use the .on() jQuery…
-
2
votes2
answers1301
viewsCSS condition with jQuery, e.g.: if div1 is visible the div2 will also be
I don’t know much Js/jQuery, but I need the following <div> hide when another <div> is hidden too. Ex: When the buy button is hidden a <div> with the discounts hide also and…
-
2
votes1
answer2014
viewsHow to put 2 elements concatenated with variable in a selector with jQuery?
I have 2 variables and I want to put the same concatenated in just one selector with jQuery: I know it’s possible to do it this way: $(".classe1, .classe2").append(...); But I want to concatenate…
-
2
votes3
answers2146
viewsCollect instagram tag images for website
Good night! I would like to create something like what you can see at the bottom of this page: http://www.theathletesfoot.com/ It presents all the photos that are being put with the tag…
-
2
votes1
answer661
viewsReplace text with HTML when it contains value in DIV
I got the divs: <div class="mensagem"> <div class="texto-mensagem">:D, :( Olá Mundo!</div> </div> I want the results to print this: <div class="mensagem"> <div…
-
2
votes1
answer2160
viewsHow to take a parameter in a URL and assign it a new value?
Speaking of my problem, I wanted that when passing a URL with the code below demonstrated, in the middle of the process a parameter was exchanged but specifically the parameter pagina that must go…
-
2
votes1
answer9851
viewsClose menu by clicking outside it or the open button
I am creating a menu structure that clicking on the element will display a submenu. I need to do this using addClass, because I need to change the stylization of the elements by clicking. When…
jqueryasked 10 years ago Mauro Alves 546 -
2
votes2
answers1097
viewsHow to persist/fill in form data via PHP?
... /busca?tipo%5B%5D=APARTAMENTO%2FAPTO+DUPLEX&area_de=50&area_at=100 In this URL I have 2 types of data: kind of is checkbox APARTMENT APTO+DUPLEX area_de que é select 50 area_at that is…
-
2
votes1
answer483
viewsBackground with mosaic of photos
I need to create a background for my site in the style mosaico photo. When the page opens, the bottom of the site is filled with photos, filling the full width of the window (ie need to be…
-
2
votes1
answer472
viewsHow to replace an attribute of an HTML snippet that is string?
I have a variable where it contains several HTML codes. This variable is already mounted, what I have to do is replace an attribute that is in a child div (tabindex). Is there a function where I can…
-
2
votes1
answer452
viewsHow to stop a function through the console?
I would like to stop a fadein() while running so that the screen looks exactly as it did at the time I stopped. The ideal would be something generic, that works for fadein, slideup, slideDown,…
-
2
votes2
answers14517
viewsGet file name in input file
I have an input, where when I click, I want you to enter the file name. I have the following code: HTML <div class="trabalheObs">Carregar Currículo</div> <input…
-
2
votes2
answers3250
viewsHow to sort a combo select by the text of options?
I wish to sort a select combo from HTML in alphabetical order and would like help in logic to be able to assemble a function that does this regardless of the number of elements.
-
2
votes2
answers2005
viewsDetect which link was clicked
I’m trying to add a few songs to one playlist, but I can’t figure out which song was clicked to add. HTML <div class='album-musicas'> <a href='#' id='add-musica-playlist-link'…
-
2
votes1
answer1517
viewsPassing variable to modal
I have a modal that opens at the end of an action (Example: Disable User). I am building the modal and wanted it to receive the text present in an ajax variable. Check code: $.ajax({ url:…
-
2
votes2
answers1125
viewsHow to differentiate inputs that have the same class?
I would like, when clicking on an input, to fill in a variable with the given value, but these inputs are created dynamically with an iterator and all inputs have the same class. You can identify…
-
2
votes2
answers2417
viewsAuto Mouse click on a content within a div?
I wonder if it is possible to make a div with auto click. That would be how the page loads and when someone clicks on any part of the page the mouse will click on the content inside the div. in case…
-
2
votes1
answer856
viewsReceiving Json array in PHP
I have the following code on the application side: function enviaMensagem() { var send = "http://appchat.host56.com/mensagem.php?jsoncallback=?"; $.post( send, {"table": [{"d":1, "p":1, "m":…
-
2
votes1
answer1982
viewsHow to postback the Asp.net page with Javascript or Jquery
Today I have a Function that calls the toggle method when I click on the tag it displays the panel in Asp.net containing a dropdownlist and a gridview. I need every time if I click again on the tag…
-
2
votes1
answer60
viewsWhy is this script returning an object to me?
I am working with jQuery to register information in the database through Ajax and do not know why this code is returning me a variable of the object type. The project I’m working on is being…
-
2
votes0
answers541
viewsRetractable menu breaks css properties when triggered
/* Responsive Mobile Menu v1.0 Plugin URI: responsivemobilemenu.com Author: Sergio Vitov Author URI: http://xmacros.com License: CC BY 3.0 http://creativecommons.org/licenses/by/3.0/ */ function…