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
votes2
answers548
viewsHow to detect change in input value with active readonly
HTML: <!-- Campo preenchido com retorno AJAX --> <input type="text" name="estado-cliente" hidden id="estado-cliente" readonly="readonly"/> How do I stop detecting any change in value?…
-
0
votes1
answer30
viewsResizing with Jquery
I’m trying to put a responsive menu on my site, I need that when the screen is resized to a certain size it becomes responsive and when it increases again it goes back to the "normal div" $(function…
-
0
votes1
answer364
viewsHow to send form without refreshing the page?
I made a code that after selecting the radio button he sends to a page but he’s giving refresh and I don’t want it I don’t want it refresh on the page but keep sending and I also want when send it…
-
0
votes1
answer62
viewsHow to make a Selectall checkbox
I need to create a checkbox if it is selected it will select all others and if it is not selected others must also be deselected. I tried to do something but it didn’t work. See:…
-
0
votes1
answer536
viewsOncick table in the <td> turn the text into an input text and when click out change the value
Hello, I was wondering how I can do to change the value of a td as follows: <table class="tb"> <tr><td>Valor 1</td><td>Valor 2</td></tr>…
-
0
votes1
answer110
viewscallback from a server
People, I am involved in a project that requires the use of the Fitbit API. In my code, I redirect the user to the FITBIT site to authorize the use of the data. After authorizing, I need to grab the…
-
0
votes2
answers549
viewsDisplay Multiple input images with Jquery
I would like to know how to present the images that were selected in my Multiple input. I’ve tried to find something of the kind but only found how to get the name, size, type. Ob
-
0
votes2
answers59
viewsError in function for load bar using a while(){}
I’m trying to set up a charging bar that starts after 2 seconds of loading the document, Her every 100 thousandths of a second win 1% of width. However, when the page loads, console.log() shows that…
-
0
votes1
answer470
viewsScript conflict
I am developing a website and for page transitions, using $.get() from Jquery and modifying only the center of index.html, without the page reloading. However, some features of the code snippets…
-
0
votes2
answers76
viewsHow to reload page if user has returned to browser history
I have a problem, that when the user clicks the back button in the browser menu, it goes to the previous page, but it does not reload and keeps the old content. How can I recharge it when this event…
-
0
votes1
answer151
viewsJavascript Check Box
I’m doing maintenance on a system, and I found the following code: $(".MinhaClass").die(); $(".MinhaClass").live('click', function () { // Código } .MinhaClass refers to a list of checkbox. I was…
-
0
votes2
answers734
viewsHow to display formatted values in the chart
I use the following library to generate the graphs: http://www.chartjs.org I have the following function to format money with semicolon (taken from an answer here in the OS) which returns the value…
-
0
votes1
answer157
viewsRemove input requirement with anguljar
I have a question with Angularjs, I am making a registration form, and has a certain form that I am doing a validation and has an option to insert multiple phones, it enters the phones clears the…
-
0
votes2
answers70
viewsShow DIVS from selected category only
Hello, I’m having a problem and I can’t find the solution, because it’s something common on the internet, I believe you’re not looking for the right way. I’d like to select the records that will be…
-
0
votes2
answers3379
viewsHow to catch a . JSON from a JS URL
I looked at some examples of jQuery documentation, but I haven’t been able to. Code: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8">…
-
0
votes1
answer794
viewsSubmit form when loading the page
I have a form and wanted that when being loaded the page, that form was submitted. I’m using the code below, but it’s in an infinite loop. <form name="teste" action="inicial" method="post">…
-
0
votes0
answers114
viewsvalue of the deletion input on click
I have this code in javascript which I pass values to inputs. When I use this code it inserts the data into input usually but when I do one click after passing the values the input automatically…
-
0
votes1
answer320
viewsProblems with textarea character counter
I want to improve this function, because when you break the line, it doesn’t count the characters properly: $(function(){ $("#maxlength").keyup(function(event){ var target = $("#content-countdown");…
-
0
votes1
answer105
viewsAsynchronous jQuery-Prototype conflict
Well I hold the use of the two libraries and so that there was no conflict I chose to use the jQuery.noConflict() however at the same time I tried to keep the use of dollar but my code breaks due to…
-
0
votes1
answer42
viewsis not checking whether a button is checked or not
if (document.getElementById("circular_select").checked === true) { piechart(); } if (document.getElementById("barras_select").checked === true)…
jqueryasked 8 years, 11 months ago usersantos 765 -
0
votes1
answer256
viewsJquery attr function does not work
I created the attr function in jquery but this does not take what would be the reason? <script src="https://code.jquery.com/jquery-1.11.3.js"></script> <script> $( "#teste" ).attr(…
-
0
votes1
answer37
viewsRemove image fade
I have a website in my hand and I need to fade the photos because the customer does not want it to be dark when he hovers his mouse over it. As I am new in the area I would like to know what this…
-
0
votes3
answers5980
viewsColumn Size with Datatables
I’m using the plugin DataTables to paginate a record in a panel. The problem is that this table has 5 columns, the last one is called action where there are 4 links (currently one below the other…
-
0
votes0
answers120
viewsCopy DOM objects as new object with JQUERY
I want to insert a copy of one content into two Ivs I made a clone and then wanted to make an append. Since append moves the contents of the last Insert in DOM. var copia =…
-
0
votes0
answers211
viewsDo a Jquery conditional test?
I am making a page and I need it updated constantly, but only when the value of an external page I called with the Jquery.get() function is different from the one already contained in the file, it…
-
0
votes1
answer68
viewsError in Javascript variable
I have the following javascript code below which occurs the following error Uncaught Referenceerror: rdIdem is not defined at Htmlinputelement (ff_admin.php?…
-
0
votes3
answers60
viewsJavascript does not follow the algorithm flow
Example : $("#segundaFeira").change(function(){ valorSegundaFeira = calcularJornadaDeTrabalho(this.value); var x = valorFinalJornadaTrabalho(); alert(x); }); Note that the global variable…
-
0
votes1
answer533
viewsCreate variable with other variable content
I need to create a variable but its name has to be the content of another already created. Example: var nome = "teste"; Now using the value of the name variable that is "test" need to automatically…
-
0
votes0
answers33
viewsClone + autocomplete help
Good night. I’m using this example of autocomplete : https://jqueryui.com/autocomplete/ It works exactly as I need it... but the problem occurs when I clone this element. Then the autocomplete…
-
0
votes1
answer102
viewsConfusing code - what does it mean?
When I have this code: {{ 'js/gourmet.js' | static_url | script_tag }} What does it mean? Where do I find this static_url ou o script_tag ? This is jQuery?…
-
0
votes1
answer47
viewscheck if method in backend is true and client too
I have a code that in my backend it returns true or false, I am working with ruby and Rails 5. then I have la an if more or less so ja: <% if @order? %> <h2> teste 2 <h2>…
-
0
votes1
answer506
viewsSelect in the database, only with jQuery
How do I make a select in the database using only a jQuery? I have two combobox and want to use their value to make a select in my database: $.getJSON('/MinhaDoenca/rest/hospital/get',…
-
0
votes1
answer35
viewsForm added to page
I have a javascript function that loads Formulars from XML files. The files contain only forms codes, inputs, selects, etc... This data is dynamically loaded to a page via the jquery load()…
-
0
votes1
answer123
viewsSelect with <ul> element
I’m wanting to make a select without using the tag select, so I’m using the tags ul and li. I took the table data from the database using PHP and dropdown it with jquery. When I click the button…
-
0
votes1
answer80
viewsExplode php string
I have a strange problem at least for me. I have a string in php: $str='10,20,30,40'; explode(',',$str); When I do the string explode and pass the result to a view via $ajax I get the following…
-
0
votes1
answer1068
viewsjQuery - How to accept only letters and accents
I need to do a validation. It’s as follows: The field can only accept normal names, like: João Pedro, Mateus Rodrigues etc. Names like Fabio123 or other special characters cannot be accepted.…
-
0
votes1
answer106
viewsAjax code is not getting the value of inputs
I have a problem with ajax, which is not taking the data entered in the email form, despite sending the emails. Follow the form code: $(function(){ $('#nome, #email, #assunto,…
-
0
votes0
answers74
viewsAjax/php paging not working on Ios
Paging my site is working on everything, pc and android browsers, but on iphone or ipad, it is not working. Is there a solution I should do to improve all this on iOS? I’m using ajax with php. My…
-
0
votes2
answers89
viewsError when giving spaces between Ivs
I’m having a problem for space on some Divs, follow code below: HTML: <div id="feira"> <div class="barraca"></div> <div class="barraca"></div> <div…
-
0
votes1
answer42
viewsFormsauthenticate + jQuery Ajax
I am creating an application that uses Formsauthenticate to log into the system. However, I would like to make a treatment so that in an ajax request (jquery) made when the user is not logged in. I…
-
0
votes2
answers1053
viewsPut a datepicker in a mvc 5 view with jquery or similar
I have this Razor in my view: <div class="form-group"> @*@Html.LabelFor(model => model.DT_AGENDAMENTO, htmlAttributes: new { @class = "control-label col-md-2" })*@ @Html.Label("Data de…
-
0
votes1
answer997
viewsLogico Javascript Operator Error on JSF page
I have a JSF page where I use the primefaces. When I use the logic operator in my javascript functions, it displays this problem: the entity name must immediately follow the '&' in the entity…
-
0
votes0
answers101
viewshow to use . on and . off in jquery
I’m wondering how do I use the correct . on and the . off for example if I click on some element or then have it fade when I click . on and then deactivate it with . off by clicking on another…
jqueryasked 7 years, 5 months ago Guilherme Sousa 19 -
0
votes1
answer102
viewsChartjs rotate text
I would like to know, I have a text created with canvas in chartJS]. How to rotate the text, the same being vertical in the center of the line. I tried with Rotate, but the text disappeared from the…
-
0
votes1
answer224
viewsAuthenticate with Session Storage
I have a login screen, where if the user logs in a Sesssion Log with the necessary information, I also saw how I can read this saved information, but how do I open a page through the URL to check if…
-
0
votes1
answer73
viewshref does not execute jQuery and Function
When you click on the Reply link the code does not execute, it does not show the jQuery Alert or Function Alert, tbm does not show an error in the console, does not even execute.…
-
0
votes1
answer292
viewsModal with json object
I need to get an image by json to appear in my modal but the modal appears but the image does not here is my code $("#estoque1").click(function(){ $('#estoqueModal').modal('show');…
-
0
votes1
answer78
viewsProblem defining 'allowTimes' in xdsoft Datetimepicker dynamically
Well guys, I have a problem here with the Datetimepicker. I’m trying to set the times dynamically accepted with the allowTimes attribute. To make it easier the code is asism:…
-
0
votes1
answer108
viewsSend post with multiple values through Jquery
I have this Jquery code to send a Post. var formTest = document.createElement('form'); formTest.setAttribute("method", "post"); formTest.setAttribute("action", ""); var post =…
-
0
votes1
answer91
viewsJavascript Class Implementation
Guys, I recently developed a game of raisin or repassa procedural (the code is ridiculous). I’m trying to improve it to put in my portfolio. I’m trying to implement with object orientation, would it…