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
answer588
viewsClear form field, if autocomplete is null
I am using the code for autocomplete below. I type the initials of a fruit and my select returns the names of the fruits that match those initials. Selecting one of them, I take the id and play in…
-
2
votes3
answers17051
viewsChange a select based on the selection of another select (from data in BD)
I have the following problem: In a form, I need to select a MANUFACTURER, and according to this selection, it shows the PRODUCTS linked to that manufacturer only. I have the following table where I…
-
2
votes1
answer488
viewsGrab some elements from a JSON variable
I have a Javascript variable that stores a JSON, similar to this one: { "estado": [ { "nome": "Foo LTDA", "endereco": "Endereço de SP", "cep": "12345-000", "telefone": "(11) 1234-1234", "site":…
-
2
votes1
answer763
viewsI need to leave the top of a table fixed, while the table has a scroll
I have a dynamic table, and I wanted head of it stayed fixed in hers while I give scroll in the table, when reaching the end of the table, the head "goes away" and so I go to the next table. All…
-
2
votes2
answers613
viewsAdding data tags to the jquery button
I need to add tags data to my button when I pass the mouse over it, I’ve managed to catch the movement of mouse hover now I need to add the tags, who are: data-trigger="hover" data-toggle="popover"…
-
2
votes1
answer3536
viewsAlert auto close using Bootstrap
Using Bootstrap and created a button save in which it performs a specific function selector(). This function will be executed only after saving in the bank, then it will show an alert that will…
-
2
votes3
answers326
viewsScript to change player (old Jquery game)
I’m trying to get the tic-tac-toe to change the player who has the turn, I was able to change it from 'X' to 'O', but when I try to get back to 'X' and so on, it won’t. Follow the code I made so…
jqueryasked 7 years, 10 months ago blackbird312 417 -
2
votes3
answers2135
viewsHow to put an element in Fullscreen
I searched a little about the same on google and most people talk to use position: absolute; z-index:9999; width:100%; height:100%; top:0; left:0; However the code above only works to put in…
-
2
votes1
answer2219
viewsLoading modal during time consuming jquery function
I have a function in jquery that takes a little while and a great while and would like to do a loading modal during that time, how can I do this? $.each(dataExport, function (i, item) {…
-
2
votes3
answers313
viewsDynamically generated ajax tags are not viewed by jquery
I am generating a dynamic table through AJAX that in one of the TDS there is a link. <a href="#modalInserirDescontoCB" class="modal-trigger id_aluno">104490</a> The link must perform two…
-
2
votes1
answer192
viewsDatatablet JS Export with Multiline
Opa, In the same cell of the datatable there can be several lines, and the function buttonsto export from datatable does not recognize tag <Br>, I’m trying to use the columns and the render…
-
2
votes1
answer415
viewsClick on multiple lines
I need to take all clicks of a generated html in a select. I have the following structure: <tr class="pesquisar" data-idlocalidade="<?php echo $linha['IDLocalidade']; ?>"> <td…
-
2
votes1
answer2573
viewswhen selecting a value from a select, a div appears
Colleagues. I want to make the user when selecting a select value, appear a div corresponding to the value that was selected. For example: The values of select are: 3, 4, 5, 6, 7, 8 and 12 If the…
-
2
votes0
answers105
viewsdatepicker loses formatting and mouse icons
Personal I am implemented the Datepicker with date and time (standard en) I’m using the component that’s on this link: http://eonasdan.github.io/bootstrap-datetimepicker/ Reading the manual I used…
-
2
votes2
answers172
viewsCapture Document click to close menu that is open
I’m implementing a function in my menu where it will close the content of dropdown that is open IF the click is anywhere else except in the menu itself. $(document).click(function(event) { var…
-
2
votes1
answer707
viewsCreate links to events created in fullcalendar and open in a Bootstrap modal
Colleagues. I am using Fullcalendar in an application and the events managed to register using PHP/Mysql. However, I would like to link to these events that appear on the calendar and when clicking…
-
2
votes2
answers660
viewsSum dynamic line values automatically
As the example below, I am trying to add the value of the lines Qtde Transferir, that are generated dynamically as the result of the database, subtract from the value entered in the field Quantidade…
-
2
votes1
answer1074
viewsDynamic form and send to mysql via jquery and ajax
Already open some questions about it , I was helped , but kind of the way they spoke only serves if the form is normal , with inputs with name"something here" my form only has an input"text"…
-
2
votes1
answer1034
viewsHow to pass parameter to modal, query Mysql and return in html
I’m trying to pass a variable to a modal, perform a query to give a feedback on html, because the data will be formatted in a table. I tried some suggestions as alternatives, but I’m having…
-
2
votes1
answer84
viewsOpening a full size Table
Well I have the following doubt. I have this table in my project. The user complains about the size because the scrollbars appear, as the page already has a lot of information can not increase it…
-
2
votes2
answers394
viewsPrevent multiple Ubmit via jQuery
I’m making a form with abide validations (Foundation 6) and I’m not managing to prevent several Ubmit’s. The following happens: When it is clicked on the Submit button of the form the following…
-
2
votes2
answers301
viewsHow do I perform functions when the window is out of focus?
Explaining the problem I’m working with sockets, and would like to know how to put a notification only when the tab is out of focus. That is, when the user is viewing the tab, he will not receive…
-
2
votes1
answer243
viewsScript this considers enter as white space
I made a script to remove blanks from a string inside a TEXTAREA or INPUT, follow the code just below: input = 'input[type="text"]:not(.inputData), textarea'; $(document).on('blur', input,…
-
2
votes0
answers50
viewsScrollto does not exactly stop in place (#idSection)
I’m using the effect scrollTo tweenmax, however I’m having a problem, the site eh composed by a few sections each has an id that use anchor in scrollTo. When I click on the menu the site slides…
-
2
votes0
answers59
viewsGet X and Y of <g> with ID even when zooming in
I have a map of Brazil with several <g> svg. Each element of this is a municipality. I need to take the X and Y of this element in relation to the div that svg is in. The biggest problem is…
-
2
votes1
answer377
viewsHow to access data from a dynamic imput of a form with Django?
I am participating in a project in which we are using Django. I created a form with two initial fields and can add more dynamically using javascript. <div class="form-group"> <div…
-
2
votes2
answers401
viewsGet element position based on another
Has two 3 Divs: <div style="margin-top: 30px;width:50px;height:50px;"></div> <div class="boxPrincipal"> <div class="elementoSecundario"…
-
2
votes1
answer119
viewsDisregard words in input
I would like to know how to override/disregard certain floods placed by users in the input. I have an input where the person should send me the URL of a site, in case they should send the url as a…
-
2
votes3
answers1136
viewsload content after an element
I am trying to make a function to load a content with .load() of jQuery, the .load() receives a parameter param which would be the archive address. And I’d like that html was loaded after a specific…
-
2
votes1
answer642
viewsFunction of "Like" without reloading the page?
Hello, good afternoon! I’m having a problem that I don’t know how to solve. I don’t know how to program in Jquery or Ajax, but I intend to start learning. How can I make the following PHP code work…
-
2
votes3
answers156
viewsExit the loop suddenly
Let’s imagine the following code: function FazAlgoTrabalhoso(parametro1, parametro2, parametro3){ //Algo trabalhoso aqui } var i; for(i=0;i<=coisas.length;i++){ //"coisas" é um array já…
-
2
votes1
answer1363
viewssend form without refreshing page
Well I’m assembling the code in jquery that will send the form, it is working. However I have some questions and I do not know how to solve. 1º - To avoid that I have to do a very repetitive…
-
2
votes2
answers1809
viewsHow to reset all data from a form if the user goes back to page?
I have a form that after being submitted presents the result on a second page, like: <form method="post" id="form" action="form.php"> <input name='nome' id='nome'> <input…
-
2
votes1
answer371
viewsAjax Reload div
I have a page that displays with Ajax database information inside the div #addremoveprod, so far all right, everything is being printed perfectly. I have also in a part of the code a function of…
-
2
votes2
answers238
viewsGenerate Image Thumbs Before Uploading
I am looking for a solution without plugins that manages Thumbs of the selected images on <input type="file"/>, preferably with Javascript or at most jQuery. The idea is to have something like…
-
2
votes1
answer271
viewsContrary to appendHTML - how to do?
I have a label in the form of my website adding to a div (in the case of the example, the id of that div is grupoExt) an HTML content. Here is the code: var numeroFE = 2;…
-
2
votes2
answers587
viewsenable input button
The code I have to validate the button doesn’t work: $(document).ready(function(){ $("#sendCat").prop('disabled', true); if ($('#cat').val()!= "") { $("#sendCat").prop('disabled', false); } });…
jqueryasked 7 years, 8 months ago Henrique Mendes Silveira Rodri 367 -
2
votes1
answer90
viewsProblem with Context Menu
Well I am mounting this Menu context within a table, it is working perfectly, by right clicking it opens. But whoever clicks the link closes without redirecting to page, someone knows what the…
-
2
votes1
answer141
viewsRequest with Ajax unsuccessful
Hello, I am making a request in Ajax, and there is an error where the value of the code of the line clicked (in a table) is not passed to Ajax, but I have another example that works perfectly and…
-
2
votes1
answer393
viewsPull fixed data from . json to select in form
I don’t know what’s wrong that it’s not pulling the json data, my goal is to pull the city/neighborhood data to display through another javascript code, but I can’t get the select to display the…
-
2
votes0
answers90
viewsIn Tiny wysiwyg editor for Bootstrap does not work creating hyperlinks in Internet Explorer
I’m using the wysiwyg editor Tiny, but I’m having trouble inserting a hyperlink in a text typed in the editor. This occurs only in internet explorer, and as follows: After typing the text, I select…
-
2
votes1
answer87
viewsWhy does the minus sign button (remove) not work when clicking it?
I have a text field with an add button on the side. When I click on the button it adds another text field with a remove button on the side. The idea is that when I click the successive remove…
-
2
votes1
answer51
viewsChange "on" to "click" in Javascript function
I want when I click on the radios to call the function, currently this way. $("input[name='txtCategoria']").on('blur', function(){ var txtCategoria = $(this).val();…
-
2
votes1
answer2265
viewsjQuery validation with ajax does not work
When I click on Ubmit it does not validate the fields, it simply does Ubmit without even having filled in. Does anyone know what can be? Obs: The form is with id form_redes_social and all fields are…
-
2
votes1
answer351
viewsPop up a message while not bringing the database results
Colleagues, Unfortunately I have no code for this doubt, because I do not know much jquery, but I have a page where I bring the results of a mysql database, but in some cases the result takes a…
jqueryasked 7 years, 8 months ago user24136 -
2
votes1
answer1124
viewsPassing data from a table to an Laravel and Ajax modal
I have a table that brings my results from a search via Ajax. But I need to open a modal with more details about the table items, but I can’t pass the data to the modal. Follow the code: Contents of…
-
2
votes0
answers92
viewsPass value of href jquery to Spring MVC
Good afternoon guys, I am having trouble passing an id that is in the jquery href for Spring MVC controller update method. Someone could help me. Thank you. $.ajax({ url : "listAllForum", dataType :…
-
2
votes2
answers121
viewsWait or check append
I have a div that should make a append of some elements and, after that, should make a scroll until the end of it. The problem is that the scroll is executed before the append is finished. The…
-
2
votes1
answer353
viewscss is not a Function
I have an array of items that I want to change the css in the scroll of my Document, when I give a console.log(), the items are there, but in the loop to change their style, give me the message:…
-
2
votes2
answers204
viewscheck jquery email as if it were two strings
Good evening, I’m finalizing a form check and I’ve locked on at one point, maybe by the way they wrote the code of my work I can’t use jquery validate, then I have trouble checking a field of input…