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
-
3
votes4
answers3411
viewsSet generic "date - * " attributes with javascript;
I need to retrieve all my date attributes, and set the information in a specific date attribute. Example: <div class="box_campo"> <input type="text" data-valor="0"> <ul>…
-
3
votes1
answer467
viewsInput Range that increases text size
I’m trying to create a <input type="range"> which increases and/or decreases the size of the text as we move it left or right. So far so good, I was able to create this effect, but now I…
-
3
votes3
answers2845
viewsHow to make ?
I have a div that will serve as a menu. The problem is I get these weird characters formatting the code and I didn’t put them there: These characters are not…
-
3
votes0
answers410
viewsAutocomplete with dynamic fields
I have a table with the fields (product, Qtde, pUnit and ptotal) the product field is autocomplete. When you enter the page, there is already a line, so the autocomplete works perfect. I’ve been…
-
3
votes2
answers525
viewsHow to get and count elements that DO NOT have a certain CSS property with js/jquery?
I need to count elements within a div that does not contain the property display:none and then calculate and add up the width of all these elements. The function of calculating and summing would be…
-
3
votes1
answer1067
viewsDrag and Drop HTML components with jQuery
I am developing a project, for my academic course and I have the following code: // Esse é um json que vem do banco de dados var Componentes = {"input": {"Label": "Textbox","Tag": "input",…
-
3
votes1
answer2810
viewsHow to use multiple conditions within an if
I’ve tried several ways, grouping with () in all the ways I imagined, creating a variable and calling it in condition etc, but I can find where I’m missing. $(function() {…
-
3
votes1
answer77
viewsAjax and php protection
Using ajax in my case can bring some security flaw? If so, how do I resolve it? javascript: $(function() { if($('#login_submit').length !== 0) { $('#login_submit').on('click', function() {…
-
3
votes2
answers233
viewsJavascript Date
I have a date in the following format: 1424102400000 , that is, an integer value. (I don’t know how to say the name of this format). I need to convert it to a value presentable to the user, so far…
-
3
votes1
answer588
viewsRepeat element with ng-Repeat
I have a form, which can be inserted another group of "Name" and "Agency" just by clicking the button. I am using Angularjs and ng-Repeat to repeat the fields the moment I click on +. However, the…
-
3
votes1
answer2279
viewsGo to the bottom of the page
Hi, I was wondering how you do to do when the person clicks, will go to the bottom of the page. If you can teach me I thank you!! In this case it was when clicked on some of these texts,…
-
3
votes5
answers5072
viewsjQuery, duplicate click event
I saw here that nay can do Singleton in javascript. I have a problem with that feeling, I have the following instruction: $("#mSalvar").click(function(){ man.bSalvarClick(); }); This generates a…
-
3
votes1
answer1470
viewsHow to get value from a variable in the controller with ajax(jquery)
I have to take a value from a variable within a method in the controller on . net, the method is in homeController and returns a json, up to there everything well the code is running and returning…
-
3
votes2
answers625
viewsRead an XML in another domain
is it possible to read an xml in another domain? ex: http://mfmradio.fr/winradio/prog10.xml?player201507291645 did the code: <script type="text/javascript"> var i; var timer,timeout2;…
-
3
votes1
answer76
viewsDocument.querySelect in body
How to use code session document.querySelector to change/change the background image of a page <body>...</body> Ex: var imagem_lista = […
-
3
votes1
answer466
viewsHow to handle jquery validate error messages?
Here is the case: I have two inputs, the two are validated with the validate, one I need to show the error msg and change the border color, the other just need to change the color of the Boar,…
-
3
votes2
answers2939
viewsAjax/Jquery - How to know if a request has been completed?
I have a simple ajax like this: function ajax() { $.ajax({ url: "../../api/utilitarios/cidades/estado", method: 'POST', dataType: 'json', success: function (data) { }, error: function (data) {…
-
3
votes2
answers4124
viewsDelete HTML Widget after a few seconds
Next person, I have a registration script, which when registering a user successfully, performs the following command to appear a message on the screen: echo "<p class='msg-success'> Usuário…
-
3
votes3
answers70
viewsStrange behavior when displaying an attribute using click();
I’m developing a script that requires calling a click() from a button as it is invisible on the page, however jQuery does not seem to return the updated attributes when they are changed. Take this…
-
3
votes0
answers24
viewsSome plugins do not work with different jQuery versions
Forgive me if this question seems a little ignorant, but one thing I realized while testing some plugins was that some, old or not, did not work with a specific version of Jquery. by default was…
-
3
votes1
answer1357
viewsRemove Row Datatable by ID
Is it possible to remove a line from the datatable by id? It’s that I have a confirmation modal asking if the user wants to delete. If you click yes, it calls a delete function.…
jqueryasked 8 years, 3 months ago Guilherme Costa 219 -
3
votes2
answers287
viewsShare button for Linkedin
How can I make a share button for Linkedin? I did facebook, google, twitter and Whatsapp but Linkedin I’m not getting. For example look at the one on facebook: <script type="text/javascript">…
-
3
votes1
answer74
viewsDeleting content with Jquery
$('<li>').dblclick(function(){ var selfItem = $(this); selfItem.remove(); }); The code above isn’t working. I want to double-click the item itself to be removed, and, as an optimization, I…
-
3
votes2
answers425
viewsProblem with accentuation in . js after Concat and uglify in Gulp
I’m trying to optimize the organ site where I work and I’m facing problems after concatenating and minifying the Avascripts. Our Apache server uses ISO-8859-1 and all my files in Phpstorm are…
-
3
votes1
answer88
viewsLong Polling Doesn’t Do Timestamp GET
I picked up this example on the blog http://rberaldo.com.br/server-push-long-polling-php-ios/ Server.php <?php header('Content-type: application/json'); require 'pdo.php'; set_time_limit(0);…
-
3
votes4
answers4452
viewsNavbar Collapse does not work!
Follow the code for analysis: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html…
-
3
votes2
answers24150
viewsError jQuery: Uncaught Rangeerror: Maximum call stack size exceeded
I have a simple function in jQuery, but it is showing the error: Uncaught Rangeerror: Maximum call stack size exceeded for example, there are 2 or 3 links I have on the page <a…
-
3
votes1
answer431
viewsHow to create validation to ask if the user really wants to leave the page?
I have a tab where the user will edit fields that are in a form. This data comes from the database. The user can edit them, however, in the end he can write (ie will write/update in the database) or…
-
3
votes1
answer504
viewsHow to "concatenate" Javascript functions?
How does jQuery lib? Example: $(element). text('my text'); I want to know how to do a function like text() in pure Javascript, just to learn the theory. I want to know how the html element is passed…
-
3
votes2
answers297
viewsselect the same id with different numbering jQuery
Use append to create numbering: $("#navigation").append("<li class='waves-effect' id='page_" + (i + 1) + "'>" + "<a>" + (i + 1) + "</a></li>"); I have specific css for each…
-
3
votes3
answers43
viewshow to execute a specific button on a list of 5 identical buttons
I’m doing a user-friendly Dashboard and I need a button to edit. When the edit button runs it just makes code appear and disappear, but wanted to know if it is possible to execute jQuery code and…
-
3
votes1
answer98
viewsShow total value
I am making a system for a virtual store, of which the user will have the value of the package. For example: R$ 12.000,00, however he will have the option to choose travel insurance through the code…
-
3
votes4
answers835
viewsLoad page with Jquery event
need a help. There’s a jQuery event that works the way I want it to. When I click, it executes the action. $("#SEN").click(function(){ $("#abre").show(); //ou fadeIn }); My intention is that, on…
-
3
votes2
answers819
viewsShow animation during loading?
I didn’t find much on that subject in tutorials, I don’t know if anyone else has noticed that services like Facebook, Netflix use a kind of "load" before showing the content, both seem to work the…
-
3
votes3
answers4238
viewsJquery take the first and second tag inside a div
I’m trying to get the first and second element inside a div. But I’m not getting it. I’m looking to get the two inputs inside the shipping_table. And by clicking on the inputs they will make a…
-
3
votes1
answer51
viewsProblems with set_include_path()
I find it difficult to make a single configuration file (responsible for __autoload) can be used either by the files that are in the root, or by the ones that are in the folder admin. The root…
-
3
votes2
answers750
viewsHow to change the background color of a slider from the bootstrap-slider plugin?
I’m working with bootstrap-slider and want to make the slider when dragging, and having its value between a given number range (I use onChange), modify the background color of the selection bar.…
-
3
votes1
answer246
viewsYoutube videos do not open on full screen
Galera would have like through some javascript to make a video on my site not open on full screen on iOS devices? Because I’m using youtube as a music player and every time someone accesses on iOS…
-
3
votes1
answer7371
viewsRound up values jQuery
I got the following jQuery: $(".quantidade_lotes").change(function() { var quantidade_linhas = $("#quantidade_linhas").val(); var quantidade_lotes = $(".quantidade_lotes").val(); var…
-
3
votes1
answer740
viewsHide Scrollbar from div with overflow: auto
I have a div .content that groups all content of the site with the following css: margin: 15px 12px; background: #fff; padding: 20px; height: calc(100vh - 30px); overflow: auto; My body has a…
-
3
votes1
answer198
viewsHow to make a 28-day calendar!
Next, I need to make a 28-day calendar with the following criteria: Every month should start the first day on Sunday, so this already formats the rest of the month. It is necessary next to the…
-
3
votes2
answers613
viewsAjax Jquery return variable giving error
I have the following script on ajax: $("#contato").on("submit", function () { if($('#descricao').val() == "") { //verifica apena o texto alert("Descrição não está preenchida!");…
-
3
votes2
answers13570
viewsHow to make a scroll to the end of a div?
I’m hoping a determined div, possessing the attribute overflow-y:auto, whose height is fixed, is rolled at the end, so an element is added to it. In this case, I need it to roll until the end,…
-
3
votes2
answers238
viewsImage Modal only works with the first
I have a modal of images but only works with the first one, can anyone help me ? see the modal here: https://jsfiddle.net/pnavtmcx/…
-
3
votes2
answers1399
viewsHow to keep page updated without refresh?
I’m trying to create a page that is always updated, without having to give refresh. I created a Javascript function that looks for a select and while from another page, but this is generating high…
-
3
votes3
answers761
viewsError Calling Jquery function
I have the following button: <button class="btn btn-default details" data-id="@fornecedores.Codigo"><i class="glyphicon glyphicon-file"></i></button> On the same page I have…
-
3
votes1
answer100
viewsUse/Escape @ in CSHTML view
I have a jQuery code on the CSHTML page and I’m having trouble validating the email with a regular expression, because the @ is a Razor command in .NET. How to proceed to resolve this issue? Follows…
-
3
votes1
answer141
viewsHow to find an HTML component in the DOM after using the . append() function?
I’m making a request to my server with $.get of Jquery, and populating my table with the method below : $.get(/*[[@{/empregados/salariosMinimos.json}]]*/ 'consultaEstadoSalario', {uf : uf,data :…
-
3
votes2
answers366
viewsRemove Focus from input when it is with attr readonly
I have the following problem, I have a input with the attribute readonly. When you click on it it is selected. I needed to prevent this because I have a function using the onblucan only work when…
-
3
votes2
answers135
viewsArray jQuery - Remove indices and concatenate html
I’m performing an ajax call that retouches the Html filters to be put in a certain div. However, I would like to remove some elements of html previously. I passed the html to jQuery, thus…