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
answer132
viewsAjax Commit - Enter
How can I make a commit with ajax using the enter key? That is, I have the following code: var nome = $("#nome").val(); jQuery.ajax({ method: "get", url: "teste.php", data: { "nome": nome },…
-
2
votes0
answers242
viewsWatch Youtube Iframe video time inserted with append?
I have inserted a button that when it is pressed, the advertising appears ahead and only then the video gives append, but with this I can not declare the Youtube API script, I think that is the…
-
2
votes1
answer557
viewsChange dropdown menu via input checkbox
I’m trying to create a dynamic dropdown menu that can show your content as checkbox is checked. <!DOCTYPE html> <html> <body> <div id="checkbox"> <label><input…
-
2
votes2
answers960
viewsProblem with Datepicker
I have a datepiker but it’s not working in a good way if I click on input it works cool, but when I click on the calendar image it neither passes the value and also does not receive what is in…
-
2
votes1
answer73
viewsIncrease text size by scrolling the page
How do I when scrolling the page increase the size of the text? I would like each 50px the text increased in 10px to scroll the page to a total of 1000px top-down. Below is Fiddle and Snippet:…
-
2
votes1
answer167
viewsGenerate default . xls column file
I have a table with 5 columns, whereas the first one has a check box and the last one has a button to delete that particular row. The issue is that I want to export to Excel, in a file .xsl, but…
-
2
votes1
answer741
viewsChange textarea background color when button is clicked
I developed an application in Javascript, Jquery and HTML. I would like to make sure that when the user clicks the button btnalterar, to textarea created change your background color. Does anyone…
-
2
votes1
answer77
viewsHow to use Jquery UI with Jquery 3.1
I’m using the Jquery UI 1.12 with the Jquery 3.1.1 and using the functions draggable and resizable. However, always when I test it does not work because it gives the exception…
-
2
votes1
answer251
viewsMy datepicker should only work on the icon
I have the following Code: $(".datePicker").datepick(); $("#IconDate").on("click", function () { $("#Date").focus(); }) My Html: <div class="float-left gutter-right field-wrap"> <label…
-
2
votes1
answer136
viewsRead radio and text inputs from the same form
I need a light for something I’m doing. within a form there are several radios and some text box. I need to get all the data inside one objeto jQuery. below an example of how I do containing only…
jqueryasked 7 years, 2 months ago Carlos Lopes 185 -
2
votes1
answer107
viewsHow to unlink object elements?
I have the following function addPerson = function(id, name) { people[id] = name; console.log(people[id].parentNode); // Exibe corretamente console.log(name.parentNode); // Exibe corretamente…
-
2
votes2
answers372
viewsDisplay text contained in span in Hover
I have the following html code below: <a class="tooltips" href="#"><strong>!</strong><span>Ingresse o máximo de informações possíveis para uma entrega…
-
2
votes1
answer53
viewsShowing result always in the same div
I have a problem with my jquery, it shows the result always in the same div, I want the result appears in the div where the button is. <div class="accordion-content" style="display: block;">…
jqueryasked 7 years, 1 month ago Wagner Martins Bodyboard 698 -
2
votes2
answers63
viewsWhy is the selected <select> option not being cleared using Choosen?
I was trying to clear the selected option from the checkbox - <select> using Javascript. In this checkbox I am using the plugin Choosen. I saw an answer in Stack Overflow, and I’ve already…
-
2
votes1
answer34
viewsComparison being repeated gradually in different records
In my code below I have a table that shows some data and a button to edit. When I click the edit button once it works normally, open the modal with the input's completed and the Javascript…
-
2
votes2
answers247
viewsHow to change the color of a div Parent relative to the size of the Childs
I have a div parent and 4 div's child and would like to change the color of border of div parent relative to the size of div child. To exclaim better put down an image with an example of what I…
-
2
votes0
answers23
views[i]. val is not a Function
I have the following code snippet: var arrayPost = $("#formPlano13").serializeArray(); var arrayCBDDD = $("#formPlano13 input[name='cbDDD[]']").serializeArray(); var trDDD = ''; // * Geramos um loop…
-
2
votes1
answer75
viewsProblem in SQL query in the Laravel
I’m not really understanding these queries in php Standard. I searched cities states where when searching the state lists the corresponding city, but it does not find the table id if the…
-
2
votes3
answers70
viewsPrevent a value from being selected in the dropdown
Is there any way to prevent a value from being selected in a dropdown? For example: document.getElementById('teste').onchange = function (event){ var valor = this.value; if(valor == 4){ alert('esse…
-
2
votes2
answers2878
viewsOpen a modal with a button in another modal?
I have a modal of bootstrap where there is a button that closes the modal but I wanted as soon as I closed the modal, to open another. I tried to put one id button to open the modal again but it is…
-
2
votes0
answers33
viewsJquey for-Loop - Function returns "Cannot set Property 'href' of Undefined"
I’m trying to create a function that searches all the links of a div and shorten them: function encurtarUrl(){ var conteudoPronto = document.getElementById("saida"); // armazena a DIV com id "saida"…
-
2
votes1
answer205
viewsCustom jQuery Show function
I would like to know how to add "effects" in show and Hide, I tried to add in my code but did not succeed. Because I tried to show only a common div with class in css that gives the appearance that…
-
2
votes0
answers131
viewsCapture Coordinates In this Api Maps script
In this scrupt below I enter the origin and the destination it returns me the km the time and data of the address among them. more my question is how to make it return me to latitude and longitude…
-
2
votes4
answers102
viewsHow to create a button that randomly selects 3 out of 5 numbers
my question is, how to create a button that randomly and automatically selects 3 of the 5 numbers that are shown. Like I just clicked on them. follows all my code below. <html> <head>…
-
2
votes0
answers182
viewsexecute function in before and after content
I have a before and after in a div with their respective meet. Would like to click on in that content and perform a function jQuery. It is possible? I tried it the way down but it didn’t even work…
jqueryasked 7 years, 1 month ago Carlos Rocha 1 -
2
votes4
answers707
viewsFunction . click does not work on buttons that were dynamically generated by the . html function?
I have the following code: var nReqAJAX = nReqAR $.ajax({ type: "POST", url: "../controller/ajax.selectItemRequisicaoPesquisar.php", data: {'numeroRequisicao': nReqAJAX}, dataType: "JSON", success:…
-
2
votes1
answer240
viewsChange div CSS with click
I’m trying to create a portfolio, his idea is that by clicking on Banner, the Logos disappears and if you click on Logos again, it re-appears and the Banner goes away. In this case, by clicking 1 of…
-
2
votes2
answers485
viewsFunction . ajaxComplete() performs several times
I want to add this function after a . ajaxComplete, but every time an ajax happens, this bolco executes an amount of times equal to the amount of ajax that happened. For example, if I first click…
-
2
votes1
answer623
viewsValidate select with jQuery Validator
I got a select like that: <form action="" id="form"> <select name="unidadeNegocio[]" id="unidadeNegocio" multiple="multiple" > <option> A </option> <option> B…
-
2
votes3
answers130
viewsDeselect checkbox in chain
I have a checkbox option that when active, shows a second check. I need to ensure that the second checkbox is only active if the first one is active. My function shows and hides the second check…
-
2
votes1
answer1119
viewsCharts with PHP Chart.js
I am implementing graphs in my application made in PHP,using Framework Chart.js,passing the query data via JSON,to assemble the graph, but when I will render it presents the following error: Follows…
-
2
votes1
answer54
viewsAdd a class in a div based on the time class of another
I’m using lazyload for a project, it carries images progressively. https://github.com/verlok/lazyload When images are loading, the "loading" class is active in the tag <img…
-
2
votes1
answer73
viewsgenerate json within loop
I need some help: I have the following json var jsonString = "{ \"0%\" : { \"margin-left\":\"-0%\"},"; jsonString += " \"25%\" : { \"margin-left\":\"-0%\"},"; jsonString += " \"30%\" : {…
-
2
votes1
answer87
viewsInstagram API returns data on the network but does not return in callback
I’m in a strange trouble and he’s just like that: I’m consuming the instagram API and it happens this happening the following thing: The return is displayed in the network tab of devtools, but in…
-
2
votes2
answers376
viewsIs it possible to concatenate a jQuery selector with a variable?
I have the following code inside a javascript function that is inside a page . php: if (indice_da_aba == -1) { window.alert('não existe ABAS AINDA'); } else if (indice_da_aba == 0) {…
-
2
votes0
answers42
viewsHow to create generic function for different inputs
I own 3 inputs, where each should use the same autocomplete. However, each will carry out the consultation with their respective val(). How should I change the code below, so that this function…
-
2
votes1
answer500
viewsI am unable to load the image that shows error using jQuery
Today’s exercise was to load an image while error on the other image. First I tried using the function .erro(), but found that it was discontinued in version 3.0. Then I tested the function .on(),…
-
2
votes1
answer135
viewsSubistituir dynamic table row
In the catch line function I pick up the clicked line and send the data to the form and store OBJ from the line and get index tbm var index = $(obj).closest('tr').find('td').eq('0').text(); Here…
-
2
votes2
answers1087
viewsOpen a tab by clicking on the navbar link
I have a navbar that has several links to the same page that has 3 tab. I need that by clicking on a navbar item it opens the page with the specific tab selected. I tried to do so (but it didn’t…
-
2
votes0
answers132
viewsDynamically change video URL inside Lightbox window
Hello, my question is about dynamic video url change. When clicking on a function (open lightbox) opens a lightbox window, and inside this janaela I need to open video dynamically, today opens a…
-
2
votes1
answer39
viewsHide content and change size of other
What I intend and the following is that when hiding the id="content1" div the other div increase to col-lg-12 what I have is the following code: <div class="row"> <div class="col-lg-6"…
-
2
votes1
answer885
viewsJquery plugins use different versions, how to bypass?
Good afternoon I’m using the pluign jQuery Knob who uses the version 1.9.0 of the jquery, and the Mask-input who uses the v1.11.1. Maskinput I used the latest version and it worked, so I think…
-
2
votes1
answer32
viewsFunction filling only one line
I created a function so that as the user type a client number, is filled the fancy name of it, but as this data comes within a table and I use array to capture (fazer insert e update) in this data,…
-
2
votes1
answer45
viewsHow to use a function of an object as an argument of another function
This is my function that receives an object and uses the attributes of type "Function". FrameWork.prototype.loop = function (objectLoop) { objectLoop.draw(); objectLoop.update();…
-
2
votes1
answer23
viewsAppend data-slb-group="slb"
I have several images and I’m trying to use the AppendTo jquery, but I’m not getting <a href="image1.jpg" data-slb-active="1" data-slb-asset="1947037253" data-slb-internal="0"…
-
2
votes1
answer105
viewsApi for file organization similar to tree structure
I am developing a meeting module, which contains management of staves, the staves are organized as follows: 1. pauta c 1.1.pauta x 2. pauta v 2.1. pauta b 2.1.1. pauta y Each staff of this is a…
-
2
votes1
answer105
viewsClose <li> by clicking on the next
I have the following ul > li <ul class="list-group no-radius no-border" id="mails-list"> <?php foreach($lista as $valor){ ?> <!-- mail in mails --> <li class="list-group-item…
jqueryasked 7 years ago Sr. André Baill 6,946 -
2
votes2
answers343
viewssubmit a form when selecting a select option, without re-loading the page
I need to submit the data of a form (are Hidden) when selecting the option in select, this with ajax without page Reload. I have the following code, which works well but does not send (POST) the…
-
2
votes1
answer52
viewsSearching for the next table after a clicked element
Hello, I’m trying to fill the next table closer to the clicked button, but I’m not getting. It is important that it be the next one right after, because there are several tables with the same class,…
-
2
votes1
answer877
viewsjQuery does not recognize event . click of a class added with append
Guys, I’m not getting to make the event . click a button that is added with the append command work. Here is the function that contains the append: function mostrarUploads(nome, tabela) { var $table…