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
answer110
viewsHow to group values and process them for the comic?
I have a BD that contains 16 fields of information, this BD keeps bets placed on a system, to later be able to process the result and payment of the customer’s ticket. In the administration part,…
-
2
votes2
answers115
viewsaddClass() is adding class to <a href=""> instead of <img src="">
Guys , I need to put a link in the image and when I did, there is an error in my fade effect done with Jquery. I believe the error lies in the misuse of next(). This fade will only work if the class…
-
2
votes1
answer1941
viewsButton change the status
I have a code where the customer clicking the button, it will activate or not a user, and of course, change the status in the database. So far everything ok. However, the code has two buttons, On…
-
2
votes1
answer86
viewsHelp Jquery upload script
I am developing a system in PHP with upload of photos, and as I wanted a thumbnail of the photo before sending to the bank, I found the following function Jquery: jQuery(function($){ var fileDiv =…
-
2
votes1
answer139
viewsHow to slide text inside an input in Hover?
I have an input with a fixed width, but sometimes the content exceeds the width of that input. Somewhere I saw a solution that by hovering the mouse(Hover) in the input the text inside the input…
-
2
votes2
answers489
viewsMaking replace or append in a <p>?
I was trying to make a append or replace in jQuery of an HTML, but I am not succeeding in it. It replaces only one of the <p> containing the class .frete-gratis but I wanted to replace them…
-
2
votes1
answer433
viewsShow div only after passing a second section
How do I show a div only after the scroll passes a certain #id? <div class="row" id="menufixo"> <!-- TODO ADICIONAR CLASS navbar-fixed-top PARA MANTER MENU NO TOPO --> <div…
-
2
votes1
answer481
viewsClose Menu-Offcanvas by clicking Outside
How can I do, so when I click on the white area after the menu is open, I can close it? The same way it runs when I click on "x"? $(function() { $('.toggle-nav').click(function() { toggleNav(); });…
-
2
votes1
answer225
viewsDropdown with Jquery/Ajax only sends data in the first record
I am applying a dynamically dropdown to each item of a returned list in PHP. When selecting any of the dropdown items, this value is sent to an Update.php file, via Jquery and Ajax. The Dropdown:…
-
2
votes1
answer703
viewsHow to save an image generated by php Gd?
I’m trying to use jcrop + php Gd to make image cuts and save to another directory but I don’t know what’s wrong with my code: <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { $targ_w = $targ_h =…
-
2
votes1
answer113
viewsBlock scrolling by screens
as that blocks the scrolling of the page by the keys with jquery, up key(38) and down key(40), leaving the scrolling only by the mouse?
-
2
votes2
answers2031
viewsSending an image and other data via Jquery to PHP
I have a question I haven’t found a solution to. Need to send via Ajax an image and other fields to a PHP file and save in MYSQL database. I don’t know how I can do that, someone can give me an idea…
-
2
votes3
answers5503
viewsDisable Function . click on DIV
I am making a game and need a routine that disables the click at least until the function finishes. The function is this below. When I click on the element and run this function with touchstart and…
-
2
votes1
answer12576
viewsChange the image src
I have a field called img, in it I save the image name, for example: 001.jpg, where "1" corresponds to the record ID. I have a routine that changes the image and is working, the change is made by…
-
2
votes1
answer761
viewsChange the value of a <H1> with jquery?
I’m making an ajax call and need to change the value of the tag <h1> with the Sponse: $('#openTickets').ready(function() { var open = $.ajax({ time: 15, url: "/opened-tickets", dataType:…
-
2
votes1
answer1437
viewsHow to change the value of a select?
I have a script that checks the difference between two sets of dates, and I want when one of these differences is greater than the other, that the value previously chosen from a certain select…
-
2
votes2
answers1891
viewsjson search with ajax in specific field
How to search for data in a JSON with AJAX ? I want to search a JSON field named tag and show another field (title and url) in a div. HTML: <div class="Minimizado top-menu-invisible hidden-mobile…
-
2
votes1
answer218
viewsRecover Chosen Jquery value
I have two Select Chosen in my form, what I’m doing is: That is, when typing if you can’t find anything related, I have the link 'insert item', which opens me a modal, until everything works. The…
-
2
votes1
answer337
viewschecks if the input value has changed with jQuery
I need to identify if the value of a input changed with jQuery. I’m trying to do so: $('input[name=cliente]').on('keyup', function(e) { // Aqui vou por minhas funções } But it’s not working. Dude…
jqueryasked 8 years, 3 months ago Hugo Borges 5,294 -
2
votes1
answer95
viewsRecover a value that comes from a jquey to PHP request
I am here with a difficulty, I am receiving a value that comes from a JQUERY request to be presented in a form input, with the code: HTML <input type="text" id="valor"> With this TAG I can…
-
2
votes2
answers200
viewsCentralize dynamically created div on top of another div
How to center the div #windows that is created dynamically with width/height that vary, over the div #main-content and I need it to stay the way it is, not creating it inside the div #main-content…
-
2
votes1
answer3455
viewsLoad content from one div into another div
I have the following problem. How do I load a content from a div into another div empty that is in the same HTML file? Example: <div class="conteudo"> <label> Teste 1 </label>…
-
2
votes1
answer56
viewsReturn a variable value with Zeroclipboard
I’m using this library https://github.com/zeroclipboard to copy text by clicking the user’s Clipboard button. I’m trying to find a way to change its functioning a little, but without success. The…
-
2
votes1
answer195
viewsSearch Data with jQuery
If anyone can help me: I’m doing an ASP.NET MVC system of academic control. At the time of enrollment, I wanted to put a blank field to enter the CPF, and other fields as the name, but only for…
-
2
votes1
answer376
viewsLoad page via load with problem
I want to load a page inside a div via load passing a variable that will define the contents of the page to load. My code: index php. <!DOCTYPE html> <html> <head> <script…
-
2
votes1
answer402
viewsOverride the preventDefault() method
Is there any way to "undo" the method preventDefault()? I have this little code that solves this for me, but I was wondering if there’s any more efficient way to do it. var $form = $('form');…
-
2
votes1
answer240
viewsHow to disable/activate a dblclick Jquery event
Good morning guys, next, I’m wanting to do a quick CRUD mode, in editing, for example, ADM gives 2 clicks in the field to be edited, and the field becomes editable with 2 buttons to the right, one…
-
2
votes3
answers2116
viewsHow to get the index of the button clicked?
I’m using a loop to generate elements dynamically: for(var i =0; i< arrSequencia.length;i++ ){ strInterface += "<tr class='formulario'>"+ "<td class='col-md-1'>"+ " <input…
-
2
votes2
answers2457
viewsLoading page with Jquery
Good afternoon friends, I was doing the following process to display my page when done loading it full: <script> $(document).ready(function(){ $('.carregado').addClass( 'bye-bye'…
-
2
votes1
answer1432
viewsHow to return a javascript function to an HTML?
Guys took the following function in Javascript (jQuery): function CustomAlert() { this.show = function (nome) { }; } var Alert = new CustomAlert(); $(document).ready(function () { Alert.show('meu…
-
2
votes1
answer2986
viewsCopy value from one input to another
I need that when I put any value inside input1, this value appears already in input2. Since you’re both on the same page, you can do this?
-
2
votes1
answer54
viewsHide H4 without link and show H4 with link
I have a div .cx-single and in it there is a <h4>, would like to display this <h4> only when it has a link. How do I do this in jQuery?
jqueryasked 8 years, 2 months ago Jonathan Magalhães 23 -
2
votes1
answer299
viewsRemove last json item with jQuery
I have json messe format: { "indice1":['nome1', 'nome2'], "indice2":['nome1', 'nome2', 'nome3'] } What I want is when the user clicks on the delete button it deletes the last json item. In the case…
-
2
votes1
answer194
viewsHow to pass Object type parameter to Jsonresult
The view always receives the Null object, why ? This is the jquery code snippet: var obj = new Object(); obj.TBCOMPOSICAOID = 0; obj.DSCOMPOSICAO = "TESTE"; var TBComposicao = JSON.stringify(obj);…
-
2
votes1
answer282
viewsSlide gallery one image at a time with Bxslider
I’m trying to create slide gallery with http://bxslider.com/ I would like the gallery to run one image at a time and not a group of images. Example I am using but would like to CHANGE :…
-
2
votes4
answers1272
viewsRun command Ctrl+V "paste" with mouse click inside an input
Hello friends it is possible with a mouse click to run the command Ctrl + v "paste" in an input with jquery? i already have a script that copies everything inside the input. now I need another that…
-
2
votes3
answers342
viewsRun multiple animations in sequence in jQuery without polluting the code
I need that when one animation ends in jQuery, another begins. And this should be done in sequence (without running at the same time). I saw it on a project where I work a code that does this, but I…
jqueryasked 9 years, 3 months ago Wallace Maxters 102,340 -
2
votes1
answer366
viewsHttpcontext receive parameter from jQuery
I’m having a hard time getting a parameter from a registration form to an . ashx. This is a simple form that will receive registration data and upload a resume. The upload script I downloaded from…
-
2
votes1
answer114
viewsAjax query does not work
Well, a simple ajax, php and mysql query. This same code changed only by field name works normally on another page. $(document).ready(function(){ $('#email').keyup(function(){ var Email =…
-
2
votes1
answer466
viewsAsp.Net MVC does not run Jquery after calling Action through "url:"
I need to call an Action using Ajax and until then everything right, I make the request as follows: confirm: function () { $.ajax({ url: urlToDelete + id, success: function () { //window.location =…
-
2
votes1
answer359
viewsajax auto complete by entering values in all inputs
To using an ajax request, to send a number to the server and return information relating to that number! In case I return two values, they are nome & funcao. So far so good! It’s working as it…
-
2
votes2
answers1271
viewsMount array through a list in ajax
I have an ajax function that consumes a webservice ,and returns me a list, as I take this list and mount two arrays with the values? JS: function getCars() { $.ajax({ type: "POST", url:…
-
2
votes1
answer73
viewsJquery if loop with css
$('#label-user').click(function(){ if ($('#label-user').style.display != 'none') { $('#label-user').css('display', 'none'); } }); good, the jquery can’t read the part $('#label-user').style.display…
-
2
votes1
answer37
viewsIs it possible to count organic search visitors?
I wonder if there is any tool/api to know from which site the visitor came, to account for visitors coming from the search engines. Thank you all.
-
2
votes1
answer66
viewsHow to disable a button during ajax request with primefaces?
How to disable a button during ajax request with primefaces using p:ajaxStatus. I wanted to do it in a generic way, ex: all buttons will be disabled during ajax request;
-
2
votes2
answers27
viewsDo not run event on just one page
I have the following code on every page $( ":submit" ).click(function() { $("#escondido").css("display","block"); }); This code is in a Blabla.js file, and is included with php at the top of all…
-
2
votes3
answers1384
viewsTurn Audio & Video into Base64
I wonder if it would be possible to turn videos and audios into Base64, I already posted a question related to transforming image into Base64 and you helped me, but now I need to do the same for…
-
2
votes2
answers5868
viewsGet all "marked" checkboxes in a dynamically generated list from jQuery
I have a modal in which it contains a list that is generated dynamically by jQuery via a callback of AJAX. The question is that I need to get the id’s of all the "checkbox’s" that were selected in…
-
2
votes0
answers227
viewsFunction . click does not work on mobile
I made a registration form using jquery, and it works 100% on the desktop plus in mobile browsers.click(Function(){' .... below follows an excerpt from my file . js, if someone can give a strength I…
jqueryasked 8 years, 1 month ago Leandro Silva Campos 543 -
2
votes1
answer81
viewsForm with two destinations
I have the following form: @using (Ajax.BeginForm("minhaAction", "meuController", new AjaxOptions() { HttpMethod = "POST", OnFailure = "alert('Erro!')", OnSuccess = "TrabalharResultado" }, new { id…