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
-
0
votes3
answers2646
viewsHow to disable an input field?
After receiving a value, how to block an input field so that it does not have its value changed? below there are two fields; how to block only the field 'FANTASY NAME' and keep 'CNPJ' to receive a…
-
0
votes1
answer614
viewsUpdate quantity in dynamic table with Ajax
I have a shopping cart that modifies the quantity through ajax by functions remove and adiciona. I have the function atualizaQtd that by ajax returns the current amount. How could you insert this…
-
0
votes1
answer58
viewsHow to update a specific div on the page?
I’d like that after the $ajax ended, updated the tag div that has as an id #coments, for in that div load data from the database. HTML <div id="coments"> <!-- // Query dos comentários PAI…
-
0
votes1
answer656
viewsSelect dynamically inserted HTML elements with Javascript
I’m developing a kind of calculator, where the client puts some information listed in "select" elements and calculates the value of the service to be hired. In this calculator, there is the option…
-
0
votes2
answers113
viewsHow to make two events not fire at the same time
I need to make a menu that when you click the button it appears and when you click outside it disappears. The problem I’ve been facing is that the event to make the menu disappear is what becomes…
-
0
votes2
answers65
viewsValidation based on a word list
I want to validate a form with Jquery + Jquery Validation, using a list of authorized words. Ex: var PalavrasAutorizadas = ['foo', 'bar', 'fizz', 'buzz' ]; if he enters any word that is not on the…
-
0
votes2
answers48
viewsSelect class from load
I have a page that is loaded by function load of jQuery as an example below: <div id="result"></div> <script> $('#result').load('listar.php'); </script> On this page…
-
0
votes1
answer43
viewsHow to get the result value of divValue. result[2] in the mvc controller?
$(document).ready(function(){ $("#btnSend").click(function(){ $.ajax({ url:'@Url.Action("VerificaCep","ConsultaCep")', type: "GET", contentType:"application/json", …
-
0
votes1
answer30
viewsWrong stored and displayed information
Hello, I have the following code: var marcas = { nome: '', fipeId: '' }; var marcasVet = []; var select; $.ajax({ dataType: "json", url: 'http://fipeapi.wipsites.com.br/carros/marcas', success:…
-
0
votes1
answer812
viewsHow does GET work with AJAX?
I have a pageant AJAX that is working, actually without working better, I’m trying to understand how the AJAX works with the url for paging to work properly. What happens is that in normal…
-
0
votes2
answers98
viewsRead HTML inside a Sweetalert plugin confirmButtonText
I have an action originated by the plugin Sweetalert that needs a button with text well extended because it is a very sensitive option and can lead to errors. swal({ title: data['title'], text:…
-
0
votes2
answers667
viewsPage reload with cacheless Jquery (Chrome)
I don’t really know if the problem is the cache or the script I made or the server I’m using, but come on. I’m using this code to upload a document to the server(I haven’t evaluated security and…
-
0
votes1
answer1060
viewsCheck if the user is logged in
I would like to do a check to know if the user is logged in, I am trying to pass this on to an ajax request but am not succeeding. PHP function that checks if you are logged in public function…
-
0
votes0
answers77
viewsUpload file with ajax ie8
I have a Multipart-fordata form where I need to send the file for processing in C#. The code below works on IE11 and Chrome. var formData= new FormData(); var planilha =…
-
0
votes1
answer199
viewsAjax data - Pagination
I’ve been studying jquery and ajax documentation. I’m trying to understand how ajax and php requests work. I’m trying to turn a normal pagination into ajax pagination. More specifically as I use…
-
0
votes1
answer611
viewsTake input values inside datatable
I own in an HTML a datatable and on each line I have 3 inputs (text, datepicker and select) and a button, which will send to PHP, to record what was typed or selected in inputs from that line. What…
-
0
votes1
answer150
viewsProblem in AJAX query in a loop
I have a view that has several pie charts using the D3 plugin. Each chart should display different data. With PHP I do a foreach on the screen, creating the div where the chart will be displayed,…
-
0
votes0
answers59
viewsHow to store Json on host site via Ajax?
<!DOCTYPE html> <html> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <title> teste </title> <body…
-
0
votes2
answers5343
viewsHow to run a jquery script when loading a page
This is my form: <form name="ff"> <select id="type" name="type"> <option value="0">Federal</option> <option value="1">Estadual</option> <option…
-
0
votes1
answer909
viewsCreate online clock - Auto generate
I have the following code: <script type="text/javascript"> $.ajax({ type : 'post', url : 'menu.php', // data : 'nome='+ $('#hora').val(), dataType : 'html', success : function(resultado){…
-
0
votes1
answer269
viewsHow to check equal values of a Foreach
Well I have two forEach. The first takes the value of a sessionStorage, that is, the ID of the neighborhood registered by the user. The second returns all registered neighborhoods and their…
-
0
votes2
answers1855
viewsCreate an id for an element from a condition with Javascript
Is there any way in Javascript or jQuery to include a Id in a div within a condition? In my code I will exemplify: $('#TxtDesc').on('input', function(){ var value = $(this).val(); var progressValue…
-
0
votes1
answer508
viewsWhat is the purpose of Moment.js?
I bought a new bootstrap template for my system, and it came with an included business that returns several alerts, Moment.js. From what I understand it is like a client-side validation library with…
-
0
votes4
answers130
viewshow can I put a condition in if so that it doesn’t happen if the array has "..." at the end of the sentence
how can I put a condition on if(if (strlen($string) > $size) {) so it doesn’t happen if the array has "..." at the end of the sentence $prod->setNome(Utility::limitaString($prod->getNome(),…
-
0
votes1
answer199
viewsHow to configure Ajax to submit date with 2 variables
I’m developing an app for users to vote on products. Technologies used Jquery plugin rateit, ajax and PHP. However I am having a problem with JSON, the configuration for 2 variables is giving the…
-
0
votes1
answer480
viewsOnchange from select does not click in jquery?
I have an application that has several select nested and use function onchange() for the selected select change the subsequent, but need to select the clicked content, but as already has the…
-
0
votes4
answers59
viewsClick the div to open option
I have a div selectClick, and I’d like when I click on it to open up an option that’s below. The way I’m doing it’s not working. $('li div.selectClick').click(function() { $(".div-select…
jqueryasked 7 years, 7 months ago Felipe Viero Goulart 3,693 -
0
votes1
answer227
viewsInsert the value of a Javascript String into a file
I have the following Javascript code: // Converts XML to JSON // from: http://coursesweb.net/javascript/convert-xml-json-javascript_s2 function XMLtoJSON() { var me = this; // stores the object…
-
0
votes1
answer40
viewsi18n grails and jquery with different languages
I’m using the language internationalization feature (i18n) in a Grails project. A portion of the tags are inserted directly into the files. gsp and another part is in the JS scripts…
-
0
votes0
answers354
viewsMy mobile menu is fixed at the top, but the dropdown follows his scroll, what to do?
I am creating a responsive site manually, so I created 2 menus, one to appear on the desktop and another for mobile version. These menus are not at the top, but about 150 pixels away. I decided to…
-
0
votes1
answer103
viewsLight and delete background content with Animation
I wanted to do an effect with the Animation or Transition CSS3 that when the red square passes, the background appears (the yellow background with the texts) and then erases immediately after the…
-
0
votes1
answer14311
viewsShow/Hide div by Jquery
What I want to do is very simple, only it’s not going. HTML <select name="id_tipo_contacto" id="id_tipo_contacto"> <option value="empresa">Alugar Filmes/Séries</option> <option…
-
0
votes0
answers31
viewsMediaelementjs playing the cache instead of the current song
I have the following code: $(document).ready(function(){ var stream = 'http://somdomato.com:8000/stream.mp3'; var nocache = ''; $('#tocando').click(function(e) { e.preventDefault(); });…
-
0
votes1
answer79
viewsHow to clean up Google Blockly?
I am using in my project Google Blockly and need that when I click a button, empty the mounted structure that is in memory. How can I do? https://developers.google.com/blockly/reference/overview My…
-
0
votes1
answer474
viewsAssign value using val(value) or attr('value', value) does not work
I’m using the typeahead, which works as follows, every text I type in the field it takes the value of the field, goes to a database, searches and creates a dropdown with the values found. It works…
-
0
votes0
answers1009
viewsCountdown with minutes and seconds with Jquery
How do I get a countdown with jquery but only in minutes and second -> 04:00 03:59 03:58... with option to stop, restart and increase and decrease the time someone could give me an example? code:…
-
0
votes1
answer43
viewsAvoid accumulation in a string by repeatedly clicking on a button
I have the following code that works as follows: Clicking on the button returns a string aaaa,bbbbb which are the values of inputs. Clicking for the second time returns aaaa,bbbbb,aaaa,bbbbb and so…
jqueryasked 7 years, 7 months ago user60252 -
0
votes2
answers60
viewsI would like a tip on checked, select option as I do to clear the fields if a person selects an option
Good morning I would like a tip on checked, select option as I do to clear the fields if a person selects an option <form method="post"> <input type="hidden" name="id" value="<!--#…
-
0
votes1
answer2783
viewsHow to add an inputmask email mask to an input field within a table?
How to add an email mask inputmask in a field input within a table html dynamically created? Example: <tr role="row" data-row-index="0"> <td class="text-center"> <input…
-
0
votes1
answer76
viewsCondition not to send field in ajax
Hello! Is there any way not to send the password field via ajax, if it is empty ? As it is, it is sending as empty and replacing the field value with empty, so I would like to send this field, only…
jqueryasked 7 years, 7 months ago Wagner Fillio 1,328 -
0
votes2
answers634
viewsChange button text in AJAX request
Hello! I know it sounds silly to ask, but I don’t understand why it’s not working. I want to send the form via ajax, while the request is made, the button is disabled and the name(text) of the…
-
0
votes2
answers1091
viewsjQuery: . val() in select only returns the value of the first option
I have a select element in my html page (code below): <section class="calc-tit-desc" id=""> <h3 id="calc-tit">Calculando Para Diarista Por Hora</h3> <p id="calc-desc">Calcule…
-
0
votes0
answers150
viewsDisplay PHP image by load() or html()
I created a PHP file, which uses the Wideimage library (with header header ("Content-type: image/jpeg")), to manipulate images. Inside this file, I capture some parameters via GET and create an…
-
0
votes1
answer29
viewsWindow resizing and mouseover and mouseout events
I had the following problem today, I created a function that checks the size of the browser window and if it is larger than 1300, the li gets two class and the link (<a>) within it receives an…
-
0
votes2
answers560
viewsChange DIV via jQuery
I have a div with a class and when the screen is at 770px I have a code that changes this class. I would like to not only change the name of the class change it of position, display it in another…
-
0
votes1
answer14186
viewsCounter javascript/html
I need to make an application in javascript/jquery/html that counts the user’s clicks on the button and when the counter reaches 10 lock the button and displays an Alert, I don’t know why it’s not…
-
0
votes0
answers51
viewsError in Jquery targeting
I am using the following code so that after the login and password it is directed to the respective page. Locally it works, but when I go up to the server, it’s giving Chrome error:…
jqueryasked 7 years, 7 months ago user24136 -
0
votes1
answer1529
viewsRecover json ajax data
I have this request: <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#ajax_form').submit(function(){ var dados = jQuery( this ).serialize(); jQuery.ajax({ type:…
-
0
votes1
answer912
viewsIncrease Font size Javascript/HTML/Jquery
i know I’ve asked a similar question, but can someone help me with this, I made an application in HTML/Javascript/Jquery ... and I need to change the source of EACH of the TEXTAREAS with a button,…
-
0
votes1
answer3669
viewsChange font color Javascript/HTML/Jquery
I am developing an application in HTML/Javascript/Jquery and would like to know how I change the color of TEXTAREA FONT by clicking the button... Someone has an idea? <html> <head>…