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
answers43
viewsChange object class <i> within <a> tag
With the following code: <a class="btn btn-primary botao" style="background-color:#009999" onclick="importar_txt_cnes()"><i class="fa fa-bolt" style="font-size:1em;"></i>…
-
0
votes0
answers46
viewsKeep selected edit status
Colleagues. I have a registration form from which the user when choosing the state, automatically appears the city. But I would like in the edition, the city already appeared selected. The code I…
-
0
votes1
answer131
viewsProblems creating a reusable modal
HTML //I take what’s inside the class observacoes and play for a textarea within the modal <td> <div class="observacoes">teste</div> <button class="btn btn-default…
-
0
votes1
answer579
viewsTake the cell value of a Javascript table
[Help] I need to enter the node value automatically in the last input text "Gesamt" after entering any value of the first vertical column, inside the input text "Mundlich" and the first horizontal…
-
0
votes1
answer89
viewsScrolltop position()
I have a Javascript function that refreshes my page every 15 minutes and I’m trying to get the last position of the scroll bar before the refresh with the jQuery command. $(window).scrollTop();…
-
0
votes1
answer113
viewsProblems with Javascript callback
I have a div bootstrap modal that sits on the "masterpage" _Layout.csthml. <div id="ModalAlteracao" class="modal fade"> <div class="modal-dialog"> <div class="modal-content">…
-
0
votes1
answer29
viewsmy html page gets ? (but I’m sending things via post). http://localhost/Systeemaaline/formulario.html?
My page loads like this (below) http://localhost/Systeemaaline/formulario.html after sending data to php and returning them to the same page using jquery, it comes back with ?…
-
0
votes1
answer47
viewsSelect does not update table data after selecting an option
I am trying to select the field with this query however the value of select is changed but does not reload the table values, showing all. But by clicking with the mouse, it works.…
-
0
votes1
answer76
viewsHow to make a comparison without id?
I’m doing a school project (an automatic bingo), and I’m on the last step, compare the raffled value with the values added by users, I’m around a week trying to do this, if anyone can help me solve…
-
0
votes1
answer364
viewsReplacing ajax in a content call without refreshing the page
I am developing a Dashboard for learning, until I came to the question of loading the content inside a div without the page update, searching I found a way using ajax and jquery. I went a little…
-
0
votes3
answers484
viewsDisplay only the first 3 elements of a list (Javascript, jQuery)
Some elements inside can vary according to the page. I can scroll through this UL, and treat each LI as an element of the Array. My question is how is it possible to display only the first 3 LI and…
-
0
votes1
answer86
viewsDisable required data Annotation via jquery
I need to disable the required of dataannotation via jquery, and need to disable also the data-required, this I have managed, but not required, I am trying to do this way:…
-
0
votes0
answers47
viewsONKEYUP opening function TOGETHER with ONCLICK
I have an input text. When Clicking on INPUT "category" opens the #result field, simple! When you type more than 1 character open the #result field, simple! WHAT I WANT: That the two functions work…
-
0
votes0
answers209
viewsHow to organize html listbox items?
I have 2 listbox where I pass the items from one to another, but it always adds at the end of the list, I would like to be able to organize the list to my liking, Itemup style, Itemdown in the…
-
0
votes1
answer422
viewsList inside JS list
Hello, good morning! I’m making an algorithm in JS where I take all the paragraphs of a text and put it in an array, after I take every word of that same paragraph and put it inside another array,…
-
0
votes1
answer85
viewsSave click on localStorage
I have a simple button that when clicked its text changes - and when clicked again it goes back to the previous text. So: <button class="texto">texto 1</button> <scprit>…
-
0
votes1
answer34
viewsMake element disappear according to system date
I have several boxes with dates in html, example: <div id="agenda"> <a href="javascript:void" class="web-thumb"> <span class="data">13 set</span> <span…
jqueryasked 8 years ago Munir Baarini 673 -
0
votes0
answers83
viewsCurl with jquery
I am trying to make a request for a page just like I do when I use Curl in php but I want to via jquery but it ta q n I have permission, I wanted to know how to fix it. my code until the moment:…
-
0
votes2
answers132
viewsFilter results from BD with JS (no refresh and no request to other pages)
Talk, you guys, next: I have names of users coming from mysql BD being displayed on the screen each in their respective div, and I have a search input that when something is typed in it would like…
-
0
votes0
answers61
views -
0
votes1
answer672
viewsDropdown menu dynamic html
Hello, I have this page in html and would like to know how I can do so so that when changing the item chosen in the dropdown menu, the html fields change. <fieldset id="fsItem">…
-
0
votes0
answers62
viewsReturns the error that title was not set
/*! SHOUTcast & Icecast Radio Player v1.1 (2/7/17) | (c) 2017, Danial Sabagh | http://danialsabagh.com | http://mersadesign.com */ (function ($) { "use strict"; …
-
0
votes1
answer136
viewsRecover Cpf with database mask
I have a Cpf record in the database where it is saved without the mask, when displaying on the screen for the user I need the number to be format for the Cpf type, how to do? I managed to put the…
-
0
votes2
answers1406
viewsCreating a button with ajax and making it run php
I have a boot that every time I click my page updates. $btn_add='<a class="btn btn-success" href="cart.php?plus='.$id.'"><i class="fa fa-plus fa-lg" aria-hidden="true"…
-
0
votes2
answers478
viewsBank check with ajax
I never worked with ajax but I need in a form do a search on MySQL to check if the login that the user is typing already exists. In the input field I put a onBlur for when the guy jumps from the…
-
0
votes2
answers77
viewsScroll through text and link word - Jquery
It is possible to select words in a long text and link them? Example: I want to select and link the words: donkey and walk. Note: Only 1 time, no repetition of links and each word for a different…
-
0
votes1
answer59
viewsclick and Hover does not work
Hello, I am developing a project, where I have a click on a div that after clicked is placed or removed a class of an element inside it that makes appear and disappear a cross, but for some reason…
-
0
votes0
answers30
viewsType Datetime incorrect format /Date(1566916268000)/ how to solve?
The return of the Dt_start field returned from the Database is correct: 26/08/2019 11:08:10 But not in javascript is like this: /Date(1566916268000)/, see: $.each(response.listar, function (index,…
-
0
votes1
answer103
viewsjQuery POST php mysql (mobile)
I’m trying to do a post with jQuery mobile on my internal server, when I run the post by the browser it inserts the registry running 100% with exactly the same code, now when I do the test in the…
-
0
votes1
answer984
viewsDelete image from input file before submitting the form
I am using the script below https://jsfiddle.net/tretaa/yrvyf2gn/52/ To make múliplos uploads. It is working correctly. I select (for example) 3 images, then remove 1, I get 2. Anyway, the JQuery…
-
0
votes1
answer31
viewsTable Selector with Id
Good morning, I have an excerpt of Javascript code that I am adding a row in the table, but when I implement in the system there is more than one table, I need to specify which one is with the id…
-
0
votes2
answers42
viewsStop counting for Jquery
How can I stop the FOR count in Jquery? For example: That code: for (i = 0; i < 5; i++) { if (i === 3) { continue; } text += "The number is " + i + "<br>"; } Will show the result: The…
-
0
votes2
answers382
viewsreset variable increment javascript
what I need seems to be very simple but I haven’t found a solution yet. I have that code var countID = 1; $("#addArma").click(function (e) { e.preventDefault(); var tipoCampo = "arma";…
-
0
votes2
answers374
viewsAjax function is not working in Wordpress
I am creating a plugin for CMS Wordpress, in it I have a script that runs perfectly until the part to make the request ajax to record some data in the database. The code works until the part…
-
0
votes2
answers59
viewsLoop does not return values on the screen
Hello, I’m developing a purchase and sale cost calculation using JS and PHP. The JS me returns the values correctly, however does not send to the fields, If anyone can enlighten me I’d be grateful.…
-
0
votes1
answer30
viewsFormat table column by id using jQuery
I would like to know how to format only the column that the user selects. For this I am using a PHP Loop with While. Each Lopp returns an id to me. My code is as follows:…
-
0
votes1
answer28
viewsStyles do not apply to elements coming via AJAX
I am mounting a page that is inserted 2 values. These values go to a page .php via AJAX and then the page returns all records from the database. Function that registers the data: function…
-
0
votes2
answers158
viewsTake element from a string
Supposing I did have: <script> var string = "Hello [background]image.png[background] World!"; </script> It would be possible to find the image that is inside the two [background], and…
-
0
votes1
answer1132
viewsInsert emoji into html input
I would like to know pq when I insert the emoji code into an html input not emoji but hexadecimal code, if I insert the code in any area in html works less in the input field. I tried to insert in…
-
0
votes1
answer55
viewsProblem with jquery percentage calculation
Good afternoon , I’m having trouble calculating percentage, but the error does not occur in the mile up, anyone has any idea what may be? var cost_value = $('#cost_value').val().replace('.',…
-
0
votes1
answer148
viewsBlock Ubmit if the "real time" check indicates that the email is already registered
I’m using AJAX and PHP to check in real time if the email is already registered in my BD, it shows a message in DIV #reply, whether the email already exists or not, so far so good. But if the email…
-
0
votes0
answers35
views -
0
votes0
answers1527
viewsCheck if the completed email already exists in the database in "REAL TIME"
I have a registration form, but I need that when filling the email field, when the person passes to the next field, he search the database and return a message warning if this email is already…
-
0
votes2
answers752
viewsFill select Multiple with data stored in the database
Good afternoon to all. I need some guidance from you regarding select Multiple. I have the select below: <select class="form-control" id="dias_semana" multiple name="diasDaSemana[]" required>…
-
0
votes2
answers40
viewsRestore UL size when leaving focus!
I have the code down below: $("ul#menu > li").find("label").hover ( function(e) { e.stopPropagation(); let ul = $(this).parent().find("ul"); ul.css('display', e.type == "mouseenter" ? 'flex' :…
-
0
votes1
answer30
viewsPopups/Modais Javascript
Well, I’ve been trying for a couple of days to do the following: By clicking on the sign-up button, open the registration modal, by clicking on the information button, open the same By clicking to…
-
0
votes4
answers86
viewsHiding div by jQuery
I have the following code snippet in jQuery: $('#btnFiltros').click(function () { if ($('#divFiltros').css('visibility') === 'visible') { $('#divFiltros').css('visibility', 'collapse');…
-
0
votes2
answers162
viewsHow to delete a selectbox with Javascript one by one
Hello... I have a button that by clicking the "addpergunta" button "clones" my selectbox which is like "Select the Question...". With each click it adds one more each time incrementing id to make it…
-
0
votes1
answer773
viewsPicking up element in a json array
I need to get the element authorDisplayName of that array json. He’s the return of a requisition ajax. How to take only the element with jquery or javascript? "kind": "youtube#commentThread",…
-
0
votes1
answer540
viewsChange the writing of an input text through JS
I have an input field that receives the amount of products input type="number" class="form-control" min="0" max="5" id="pugQuant" placeholder="0" onclick="calculo();" And another that shows the…