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
-
4
votes2
answers42
viewsHow to not serialize a particular type of element with jQuery
I have a form and I don’t want to "serialize" the input’s of the kind checkbox, soon tried some options such as below: var form = $('#service-item-form :not(:input[type="checkbox"])').serialize();…
-
4
votes1
answer645
viewsHow to serialize with input disable?
In a reply to SOEN They pass an approach of temporarily disabling the camps: Example: var myform = $('#myform'); // Encontra os elementos e remove o atributo disable var disabled =…
-
4
votes3
answers63
viewsCharacters " ' " and " f " appear in the textbox, how to correct?
We are using MVC5, I put a @Html.Textboxfor a Jquery function that does not allow the insertion of letters, but whenever the user type the characters " ' " and " f ", they are inserted and deleted…
-
4
votes3
answers504
viewsDisable input text by clicking another input text
Good Afternoon, I have both inputs below: <input type="text" id="txtEntrada" name="entrada" onkeyup="somenteNumeros(this);" > <input type="text" id="txtSaida" name="saida"…
-
4
votes3
answers498
viewsWrite checkbox value to input
Well I would like to be registering the days of the week selected directly in Sert, however I would like to be passing these values as a "phrase" to the hidden field. What is the way to be doing…
jqueryasked 9 years, 7 months ago Arsom Nolasco 1,367 -
4
votes1
answer122
viewsTurning a datatable into an array with jquery
I have as output a string with the following format. [["link"],["<iframe id='player' type='text/html' width='452' height='272'…
-
4
votes1
answer4489
viewsHow to make an ajax autocomplete?
I’m trying to implement an ajax autocomplete, where I do a database search and show the input options, but I’m not able to identify where I’m wrong. Follows the code: <div class="row troca">…
-
4
votes3
answers1678
viewsHow to run code just in the first click?
I have a list of buttons (<li>): <li id="1">link 1</li> <li id="2">link 2</li> <li id="3">link 3</li> <li id="4">link 4</li> <li…
-
4
votes5
answers1294
viewschange the title of a Window confirm()
I wonder if somehow I could change the title of a window confirm(), because I’m developing an app using phonegap and when called this window it presents me the title with the name of my html file, I…
-
4
votes1
answer2229
viewsHow to get the value of several fields filled using jQuery?
Currently I have a customer search system that can be searched by Cpf, cnpj, phone, address, email and various other information, I can search a customer asking if there is a customer possessing an…
jqueryasked 9 years, 7 months ago Gabriel Rodrigues 15,969 -
4
votes2
answers1377
viewsMake Tooltip appear by clicking inside the input
I have the following problem. I have this js code: // Tooltip $("#sel-tooltip").select(function startTooltip(){ $(function() { $('.tooltip-icon').tooltip({ placement: 'top', title: 'Sinta-se em…
-
4
votes1
answer1860
viewsKnow which button was clicked
Friends, I have 4 buttons like <input tupe="button">, each has a different class because they are formatted in different ways. Both buttons have the same action, with different values only. I…
-
4
votes3
answers1573
viewsAvoiding line breaks in text areas
I have a normal textarea <textarea placeholder=" Digite aqui" class="form-control"></textarea> I wanted that when the user pressed enter, it did not break line and already send the…
-
4
votes1
answer1214
viewsBy clicking a php run button
Is it possible for me to merge the php with the jQuery? For example, when you clicked on a button you picked up an input value via jQuery and move on to php, an example of what I’d like to do:…
-
4
votes2
answers1201
viewsModify Canvas in real time
How can I use the tag canvas HTML5 and make this change in real time as I input the data into input? I’ve already done the form and put the tag canvas page. I was wondering if JQuery it is possible…
-
4
votes2
answers294
viewsWhat is the correct way to return a "switch" value?
How is the correct way to return the value of switch? HTML: <h3 id="txtOcorrenciaStatus">Status</h3> Javascript: switch(ocoStatus) { case C: $("#OcorrenciaStatus").html("Concluído");…
-
4
votes0
answers162
viewsHow does Ajax paging work?
I’m using a script to make the pagination through Ajax, workable assíncrona, the situation made me curious, because until then I had only used pagination php+mysql, never php+mysql+ajax. If my bank…
-
4
votes1
answer1005
viewsAjax Synchronous Xmlhttprequest
What should I do in this situation. I have a script where I have to disable in AJAX function the option: async : false . I do this because it returns a variable wrong, previous to the last one that…
-
4
votes1
answer575
viewsAdd input and output and subtract
I have this code: $(document).ready(function () { var $entrada = 0, $saida = 0, $total = 0; $.each($("td[name='entrada']"), function() { $entrada += parseFloat($(this).text().replace(",", ".")); });…
-
4
votes1
answer1116
viewshow to pass data to a php function by ajax url?
People try to give me a force around here, I’ve searched and I can’t find an answer that answers me. Come on! I am working with php classes, I would like to pass data from a form through ajax.…
-
4
votes1
answer235
viewsImage smaller than the original canvas upup when drawImage()
I am developing a system to filter images with canvas Html5, however, as I am at the beginning, I have already had some doubts and errors. At this "start" I want the canvas size to be equal to the…
-
4
votes2
answers959
viewsJquery hover function in dynamic elements
Is there any way to use the hover with jQuery in dynamically created selects options. I tried to use the function on() and the live() but it didn’t work out. I tried so: $(document).on('hover',…
-
4
votes1
answer1984
viewsHow to drag a div on my page?
How can I implement a drag and drop in div without that element messing with other elements of my page and getting over them? I also needed him to stay where he was before if I push Esc.…
-
4
votes1
answer551
viewsWhat to apply() - jquery for
I wonder what the function is for apply() in jquery. I am creating a plugin where I am using. By observation I see that it catches the this and passes as argument in function init. Then I can use…
-
4
votes1
answer676
viewsHow to create an association form (Picklist) in modal?
How to make the screen below in modal. Remembering that the boxes are multiple selection, and how to do that by clicking the button Associar > move to the right column the values I selected on…
-
4
votes5
answers1538
viewsHow to run an event once?
How to make an event to be triggered once? <div> <span class="oi"> OI </span> </div> $('.oi').mouseenter(function(){ alert('OLÁ'); }); This is just a simple example.…
jqueryasked 8 years, 8 months ago Adriano Luz 1,023 -
4
votes1
answer93
viewsOnselectionchanged MVC
Late, How can I call the Onselecionchanged event from a DDL using MVC? I have the following DDL: @Html.DropDownListFor(model => model.Type, ViewBag.Type as SelectList, "-- Select --", new { id =…
-
4
votes2
answers10294
viewsEnable/Disable button according to field validation
I am performing date validation for two fields <input type="text"> with the jQueryFormValidator: $.validate({ modules : 'date' }); <script…
-
4
votes4
answers912
viewsAdd variables to obtain end date
I have a form with a rental register. In it, I have the fields $datainicio, $meses and $datatermino. The start date I put automatic, according to the date of the day. The months must be placed at…
-
4
votes1
answer177
viewsHow to disable default value in Kendo dropdownlist?
I have a Kendo grid and I’m creating a template for editing the data presented on the grid, but I’m having problems with the code below... This is part of the code of my template: <script…
-
4
votes1
answer290
viewsProgress Bar to follow input text
Well I’m starting in Bootstrap and I’m having a doubt whether or not it’s possible that I’m wanting. I have a textarea where it must limit the content to 300 characters it is already working:…
-
4
votes1
answer96
viewsHow to work with Ajax with Jquery?
I have the following function: function getJson() { $.ajaxSetup({ async : false }); $.getJSON(baseURL + "/ObterCursos", function(data) { $.each(data, function(key, val) { items.push({ "Codigo" :…
-
4
votes2
answers720
viewsclear input with event onchange javascript
Guys I have 2 input: <input name='nome1'> <input name='nome2'> I need to create a javascript that clears Nome2 when the value of name1 is modified. Can someone help me make it very…
-
4
votes1
answer561
viewsHow to convert jQuery’s . on function to pure Javascript
Today I started trying to turn a function I’m using into jQuery (which @José helped me implement in this answer) to .on, for pure Javascript, but I’m facing some difficulties. The online courses I…
-
4
votes2
answers4673
viewsHow to simulate a keystroke with jQuery?
I wonder if there is any way to simulate pressing keys with jQuery. For example, when clicking a button, simulate that the "down" and "left" keys were pressed, as if the user had a keyboard.…
-
4
votes2
answers70
views$. GET Jquery Dùvida
I have the method: RepoApi.prototype.getContributors = function() { var returnList = []; $.get(this.url).done(function(response) { console.log(response); returnList = response;…
-
4
votes1
answer105
viewsIs there any way for a div to assume the role of the scroll?
I have the following code: $("#scroll").draggable({ axis: "x", scroll: true, containment: "#area" }); .area{ position: absolute; width: 1010px; height: 100px; margin-top:10px; margin-left:10px;…
-
4
votes1
answer167
viewsJquery - Scrollbar
I’m developing a scroll bar in JQuery for an element, a div, I need the bar to be the right size to scroll, I’m posting the code with the error to see if you help me: Codepen It gets the bar of a…
-
4
votes1
answer2270
viewsHide part of a text with javascript
I have a table that is filled with data from a bank. One of the columns contains text that is sometimes long ( more than 1000 characters). I want to limit the display of this text in the table to…
-
4
votes2
answers117
viewsIs it correct to use $(selector). not(':Visible') here?
I am refactoring the CSS of a system function and to treat the CSS property and not a string I switched this line of code: (1st way was working properly) var ultimaMensagem =…
-
4
votes3
answers240
viewsWorking with X-layer array in JS
I have a big problem, I have researched several places and I have not found the solution I hope you can help me... My goal is to create a JS function that will take an array as a base, which here I…
javascript jquery array multidimensional-array dynamic-programmingasked 9 years, 4 months ago MateusFMello 166 -
4
votes2
answers1263
viewsHow to search by class (instead of id) in Javascript/jQuery
I’m using a plugin for popular city/state, but I wanted to use in more than one select, so I wanted to use per class instead of ID, but what I tried so far didn’t work. I tried to follow this famous…
-
4
votes3
answers9590
viewsHow to use Jquery with Vue.js?
During the implementation of Vue.js with sematic-ui, I have the following Jquery to open the modal: $('.ui.modal').modal('show'); how to make this integration in Vue?…
-
4
votes4
answers3696
viewsMultiple Bootstrap Alerts
I’m trying to create a standard response using the alerts do bootstrap, my goal with a simple: $(".alert").addClass('alert-success').text('Configurações salvas com sucesso.'); I choose the class…
-
4
votes1
answer448
viewsFile in JSON format
And oh guys all beauty? I’m having a rather silly question, but I couldn’t find an answer. I’ve been going through some websites and I saw that instead of them calling a request $.AJAX on the server…
-
4
votes1
answer3624
viewsCheck for Jquery internet connection
Does anyone know a good function or a good way to check if there is an internet connection before making an ajax request?
-
4
votes3
answers649
viewsLimit characters in div with contenteditable
I have a div with contenteditable="true" and would like the text that goes beyond 10 characters to be taxed with background red, as happens on Twitter. My main question is how to tax only the…
-
4
votes1
answer421
viewsMETABOX with state/city dropdown in Front-End using Cmb2 Plugin
I have a little problem with 2 dropdowns selectors, so far so good, because I’m using the CMB2 plugin and a METABOX selector code, and everything is ok in the Wordpress Back-End, however, when I…
-
4
votes2
answers318
viewsProblems to remove Parent() items with jquery
Good morning gentlemen, I’m having a certain problem removing just one of the elements. I have a textarea that adds paragraphs, the problem is being at the time of deleting, I want btn to delete…
-
4
votes1
answer394
viewswindow.open() does not load the page
I am trying to open a link in a new window/tab but when it opens it does not load. Controller: public static Result loadCreateArtigo(){ return ok(request().host()+request().path()); } Javascript:…