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
votes1
answer515
viewsHow to access the Clipboard image from the browser?
Does anyone have any idea of how to access the image that is in the Clipboard when we give a Print Screen on any screen? What I need is to have access to the image by giving a ctrl + v in the…
javascript jquery html google-chrome clipboardasked 10 years, 5 months ago Ivan Ricardo Lopes 1,376 -
3
votes1
answer94
viewsHow to make so that when a person copies something from my site, go along to the clipboard "source: meusite.com"?
I would like to make that when someone copies something from my site, automatically be added to the copied content the source, for example: source: meusite.com…
-
3
votes1
answer2302
viewsCustomize the appearance of the jquery-ui dialog widget
I am trying to change the appearance of the jquery-ui 'dialog' widget, and so far I have the following css code for this: .ui-dialog { position: fixed; z-index: 1050; display: none; overflow: auto;…
-
3
votes3
answers1367
viewsHow to send my login and password via $.ajax
Hello, I have a link where it opens a modal window (as if it were an "Alert") to enter the login and password. I am using jQuery, the $.ajax{} function to be more specific. I would like to know how…
-
3
votes4
answers5635
viewsMake a regex to remove characters
In a return of a jquery function, the date returned comes in this format. /Date(1401731794773)/ I would like to remove the invalid characters on that date, which are: /Date( and )/ I only need the…
-
3
votes2
answers361
viewsReturn div to initial position after animation?
How can I return mine div to the starting position if it reaches a certain point on the left? I have the following current code: $(document).ready(function() { $("#botao").click(function() {…
-
3
votes1
answer790
viewsEvent on('change') fires by clicking outside the element
I have the following code in a input of type file: $('input-imagem').on('change', function() { alert( $(this).val()); }); It works almost straight, when I click off the input he gives the alert…
jqueryasked 10 years, 5 months ago Danilo Molina 117 -
3
votes1
answer5051
views -
3
votes1
answer419
viewsHow to submit all form fields with $.post?
I have a form with 2 fields, User and Password. $.post('recebe.php',{ `Nome:'Meu Nome'` `Senha:'Minha Senha'` },function(data){ alert(data); }); Is there any way to take the name and value of inputs…
-
3
votes1
answer1618
viewsDisable Space Key
How to lock space key to scroll down page when pressed ? $(document).keydown(function(e) { if (e.keyCode == 32) { return false; } }); This code keeps letting the bar down when pressed space I have…
jqueryasked 10 years, 7 months ago user3517672 357 -
3
votes2
answers4019
viewsCalling Java method in Javascript
I have a problem, and I needed to call a Java method inside a Javascript file. Java example: public void Inserir(User user) { //insere usuario } Need, via a file . js, send the object to the Java…
-
3
votes1
answer241
viewsConflicts between double tap and click. (jQuery and Hammer.js)
I’m trying something different, I would like to implement something similar to an Instagram feature: two tapas to give like. To try this, I am using the latest versions of jQuery and Hammer.js. I am…
jqueryasked 10 years, 6 months ago Caio Tarifa 2,251 -
3
votes1
answer2966
viewsJquery how to select a specific element by index
I would like to know how to select a specific element by the position of the index, because I can go through the structure with the next and Prev functions, but I’m not finding a way to select an…
-
3
votes1
answer1066
viewsHow to make a hover effect change another "object" selected in jqGrid?
I have two classes A and B, I need that when you mouse over A what changes is the value, color etc of B. I don’t know if I can do this in CSS or using Onmouseover.
-
3
votes1
answer191
viewsInterpreting XML with Jquery
I made a script with Jquery to use AJAX and it’s working. The problem is when interpreting the XML is returned, the XML is the result of a login attempt, it contains information indicating whether…
-
3
votes4
answers143
viewsGet date-img value
I have the following problem: I am getting the value of data-img when I do Hover in class . gettoll, but I need to replace this value here content: "<img src='IMAGEM AQUI'>", when hovering…
-
3
votes3
answers1360
viewsSelect "select" element with jquery
I created on my page one select multiple and I need to take your values in PHP in vector form, so I added [] at the end of the name. Example: <select id="selecionados[]" name="selecionados[]"…
-
3
votes1
answer407
viewsTest Jquery classes
I know that to test if an element has a class we use hasClass(), but my question is as follows. I have an element with a class and assign a second class to it with classToggle(). Is there a way to…
-
3
votes1
answer465
viewsEnable input by clicking the button within the same row of a table
In the table row above I have two inputs disabled in the columns vlcontrato and valor. I would like to click on the button alterar these two inputs were enabled for me to edit them. Once they are on…
jqueryasked 10 years, 6 months ago Vitor Molina 343 -
3
votes1
answer1966
viewsHow to copy a text to the Clipboard using Zeroclipboard?
I found several articles saying that this type of action with Javascript is something "risky" and many browsers prevent this to be done. Yet, in the articles I read, they said that the only way to…
-
3
votes3
answers1135
viewsBootstrap navbar dropdown focus control menu after click
Situation I have a navbar on my site, and in it I have several dropdown menus / megamenus. I need that when clicked on this dropdown, the user has the option to "scroll" the page up and down with…
-
3
votes1
answer226
viewsBring JSON result in div with jquery
I have the following JSON generated by the system: var skuJson = { "productId": 17234, "name": "Sabonete AnaSuil Porta Joias Rose Bulgarie", "salesChannel": "1", "available": true, "displayMode":…
-
3
votes1
answer2989
viewsHow to make a horizontal list of images that does not break?
I want to make a list of images horizontally, but they’re falling, look: My CSS: #fotos{ margin-top:30px; width:650px; overflow-x: hidden; height:110px; border:1px solid #CCC; } #fotos ul li{…
-
3
votes3
answers44020
views -
3
votes2
answers1312
viewsRetrieve cookie expiration time in javascript or jquery
Is there any way to recover the remaining time for expiration of a javascript or jquery cookie?
-
3
votes2
answers25883
viewsHow to remove backslashes ( ) and quotes (") from a string?
I would like to prevent the use of these characters in a string. I think the most elegant way would be by regular expression, but I don’t understand anything about putting together a. A replace…
-
3
votes1
answer500
viewsHow to check variables with jQuery so that they are not sent empty?
I am learning about jQuery and have already started making Ajax requests to register the information in the mysql database. I have a code that has several variables and I would like to ask how I can…
-
3
votes2
answers2234
viewsCheck variables in jQuery?
There is a smarter way to write this verification code, the IF? jQuery("#oformulario").submit(function(){ var nome = jQuery("#nome").val(); var email = jQuery("#email").val(); var telefone =…
-
3
votes1
answer49
viewsGlobal object for project
I am doubtful, if this way would be a very "ugly" method of making: https://gist.github.com/anonymous/6df36cc016a10bed0d66 In this case, an object called "Ecommerce" was defined, and I am assigning…
-
3
votes1
answer38
viewsIs it possible to configure a Jquery Effect?
It is possible to change the options on Toggle Explode? For example: it has nine divisions by default, is it possible to modify the number of parts in which it explodes and the size of these parts?…
-
3
votes1
answer141
viewsMake DIV Scrollbar follow li element of the list
Hello, I would like to know how I can make the code I have (below) make that every time the button "next" or "previous" are clicked, follow the element li with class "music-playing"? Code:…
-
3
votes3
answers988
viewsA single script for N Formularios
I need to know the correct way to when I submit a form a single script solve, the code below only works if I create a script for each form. How do I fix it? Example: $("#meuform") ... $("#meuform2")…
-
3
votes1
answer2295
viewsMultiple files for upload
I’m looking for a plugin Jquery upload multiple files at the same time. Does anyone know of any to inform me?
-
3
votes1
answer302
viewsHow to move a chart (Highcharts) using the arrow keys?
How do I move a chart using Highcharts? Instead of moving with the mouse to the right and to the left, I would like to use the arrow keys (right arrow, left arrow, up arrow, and down arrow).…
-
3
votes0
answers68
viewsUse! Important in CSS applied with Jquery
I have a code in Jquery, and would like to apply the !important in the CSS, as below: $('.prodMenor:eq(6)').css('margin-right','0!important'); But the way I did it’s not working, there’s another…
-
3
votes1
answer400
viewsHow to preview several different images?
How do I preview several different images from different inputs? Here’s an example of how I wanted it to stay HTML <div class="col"> <input type="file" class="custom-file-input"…
-
3
votes2
answers1373
viewsJquery Datatables - Customize Header
I searched a lot and could not figure out how to customize the header of the report in pdf that Gero from the plugin; for example, the "sTitle": "Groups" is the title that is in the header, but it…
-
3
votes1
answer129
viewsjQuery external page Toggle effect via require or include PHP
I’m creating a user menu, it stays on a page the part that is incorporated to other pages like index and home for example. It assumes the role of a widget that is only shown if there is session…
-
3
votes2
answers1973
viewsSelect line in datatable and get id
In jquery datatable how do I select a single row and get the value of a certain column, such as id? http://jsfiddle.net/miguelpacifico/4jjkrqew/…
jqueryasked 10 years, 2 months ago Miguel Pacifico 41 -
3
votes3
answers794
viewsCapture content to be pasted
I need to capture the content of a text that will be pasted into an input, before the glue happens. I’ve already captured the collage event: $(input).on("paste", function (evt) { /* evt contém tudo…
-
3
votes1
answer487
viewsUpdating content inside a Lightbox without giving Refresh on the page
Good guys, I’m using Lightbox and Ajax for content magnification. The content itself has always been accompanying an image, so just click on this image and it magnifies and appears the text…
-
3
votes2
answers130
viewsBxslider plugin does not show thumbnail
I’m using the Bxslider plugin to make a carousel with thumbnails, only I’ve tried everything and the thumbnails do not appear on any list. The images come from the database, but even swapped the…
-
3
votes1
answer784
viewsRun jQuery on console on a page that doesn’t have jQuery
Often, jQuery is very useful to take some statistics off the page and others cositas, just make a $('.elemento').each(callback) and you can already start to know what is happening on the page. The…
-
3
votes2
answers1018
viewsHow to drag elements using dragSort inside a scroll div?
I need the elements to be dragged only inside a div that has scroll. For example: HTML <ul id="list1"> <li><div>1</div></li>…
-
3
votes2
answers5819
viewsHow to redeem the values contained in a span with jQuery?
How to take the values that are inside a span? For example: <?php $total_prod = $this->totalRegistros($sql_prod); $preco=$this->getPreco(); for($j=0;$j<$total_prod;$j++){ echo"…
-
3
votes1
answer836
viewsRemove part of the string
I need to modify a string with jQuery. Suppose I have a variable address: var endereço = "Rua emanuel meira martins 85 cic curitiba..."; The idea is to remove all letters after position 15 and add…
-
3
votes1
answer9617
viewsHow to concatenate an input name with a jQuery variable?
I own a table that contains a button that adds a row to the table each time I click on it. The created line has 4 inputs, one of these inputs has an auto-Suggest / auto-complete function that…
-
3
votes1
answer501
viewsRun jQuery function in dynamically generated table after an AJAX
I need to execute the function below, after the AJAX request it has to remove the row from the table, if I put the code that removes the direct line in the function it removes the line normally, but…
-
3
votes2
answers492
viewsjQuery, native window.width() and window.on resize in the same condition
I wonder if a better way is possible than this, as it would save the repetition of code: usually do: if($(window).width() > 800) { // BLAH BLAH BLAH } $(window).resize(function(){…
-
3
votes2
answers9506
viewsValidate Radiobutton with jQuery
I would like to do a validation via jQuery, to know if the client has selected some RadioButton Jsfiddle Demo It displays an Alert if it has not selected, but it still sends (submited), it should…