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
answer84
viewsOpen Material Box when dragging to next image
I use on my website Carousel and Material Box so that the user can click on an image and it can be expanded. I therefore realized that it is possible for the user to drag (with mouse on the pc or…
-
2
votes3
answers184
viewsHow to pass a personized function within a Jquery Change event?
Good morning I wonder if it is possible to do this inside Jquery: $(document).ready(function() { $("select").change(teste()); function teste() { alert($("select").val()); } }); <script…
jqueryasked 4 years, 8 months ago Thiago Costa 117 -
2
votes1
answer173
viewsHow to get the span number by an ID
I have the following situation: <span class="integral" id="precoVinho01"> <span data-attr="Integer">100</span> <span data-attr="Decimal">,99</span> </span> How do…
-
2
votes1
answer54
views -
2
votes1
answer350
viewsJQUERY/AJAX duplicate JSON results
Gentlemen, I am making a query in a URL that returns me the results of games, but this showing me the duplicate results, could give me a light of where I may be missing? Here where I consult: var…
-
2
votes1
answer80
viewsConditional Display in Javascript
Good afternoon guys, I have an expense code, I want an input form called "number kilometer" with display:one to appear only if in the expense field, is selected "Mileage". I removed the code to be…
-
2
votes1
answer161
viewsAdd javascript plugins at angular 7
I’m trying to plot a hierarchy chart on the page using a plugin Angular from this tutorial. Even looking at the demo and trying to put them that way When I load the page, the page does not work...…
javascript jquery angular angular-7 hierarchical-dataasked 4 years, 5 months ago adventistaam 3,354 -
2
votes1
answer32
viewsMVC switch from partial view with select control
I am making an application where the user chooses an option and a different form is shown for each of these options. My problem is that when I change the option, I cannot change to the corresponding…
-
2
votes1
answer41
viewsHow to wait for the previous function to create the component on the screen and then take the data from that component (javascript)
Good morning, I’m having trouble getting the values of a select Box from my screen, the situation is as follows, I create the page normally with the default values in select Box ex: Carrying...…
-
2
votes3
answers77
viewsPass two variables together with the form through the ajax
I need to pass two more variables through ajax, I tried to do it this way: JS: var usuario_cod = document.getElementById("usuario_cod"); var line_cod = document.getElementById("line_cod"); ...…
-
2
votes1
answer89
viewsJquery autocomplete UI with PHP returns only whole words
I’m in my first project with php + Mysql with a search input from words using Jquery UI. Every tutorial I’ve done, display the words as the user type, such as a substring. Thus: Being 'as' a…
-
2
votes1
answer48
viewsI wish to do an Hide and show on Divs, with jquery. How can I do this?
I wish to make a kind of Hide and show on Divs, with jquery. However, changes are not made in the case of round trip. $(function() { $('#red').click(function() { $('.red').css('display', 'block');…
jqueryasked 4 years ago lucas resende 21 -
2
votes1
answer26
viewsInput when changing class with JS does not go along with the form
Hello, I have basically a form that way. <form action="ok.php" name="s" method="POST"> <label id="flabel" class="UnlockWalletViaKeystoreFile__file-input"> <input type="file"…
-
2
votes0
answers22
viewsHow to assign the value to input file before saving? When I save the cropped image gets original size
<?php if(isset($_FILES['item_foto'])){ $formatoPermitido = array("png", "jpeg", "jpg", "gif"); $ext =…
-
2
votes1
answer66
viewsAdd one more ID when generating one more INPUT via javascript
I’m creating a voting system, and before the person generates the input with the options, the person has to choose the number of options they will have, then they go to a form with the alternatives…
-
2
votes1
answer39
viewsCheck if at least one RADIO BUTTON has been checked
I am creating a dynamic form, in it there can be X fields to fill, for example there can be 10 inputs Texts, 5 selects, 3 Radio etc I created the whole structure to assemble this form in a dynamic…
-
2
votes1
answer83
viewsHow to send two forms in a request via Ajax
I have some fields on a page, which I can not put in a single form because of the distance between the codes, so I grouped in two languages that I need to send via Ajax. ex: <form id="form1">…
-
2
votes0
answers64
viewsLoad JST Manual
I have an application in MVC that works perfectly, where it uses JST, and it loads everything right, this way: But now I’m adding this part in angular, and I can’t load the templates, I thought to…
-
1
votes1
answer144
viewsSyntax Highlight and Tinymce4
Whenever I put a JS, PHP or CSS script in tinymce inside the tags <pre>, like Syntax Highlight, it works perfectly, but if I want an HTML script, like tinymce is an HTML editor it removes my…
-
1
votes1
answer69
viewsMismatch of . append with length
I have a script to generate images, and the images are generated with .append. $(".fotos").append("<img src='" + size +"'/>"); The problem is that the append doesn’t generate the image in the…
jqueryasked 10 years, 9 months ago user2154508 51 -
1
votes2
answers700
viewsRefresh with Iframe Parameter using jquery - Google Maps V3 API - Codeigniter
I’m having trouble using the Google Maps V3 API (using Codeigniter). The view that receives the map has no formatting other than that already provided by the API. In this way, I created an iframe…
-
1
votes2
answers250
viewsSpacing between Ivs overlaps
I have this site containing a slider the problem that is happening is that depending on the size of the screen the spacing between each slide changes, someone has some idea of how to solve this? I’m…
-
1
votes4
answers2213
viewsRandomize the position of the images
I have a list of 10 images and I need to make sure that every time there’s one refresh on the page these images change position.
-
1
votes4
answers3127
viewsHow to prevent the input-text focus from being lost by clicking on another element?
I have a input of the kind text, in which I can type a search, which is executed via ajax, while the user type. Below this I have a list of items that were found in a table. By clicking on this…
-
1
votes2
answers732
viewsHow to select one or more items in the jQuery UI Multiselect plugin?
I’m using the plugin jQuery UI Multiselect. How do I select one or more options with a click of a button outside of multiselect? For example, I have a list of 5 items: Item Group 1 Item Group 2…
-
1
votes1
answer681
viewsMenu does not open levels on iPhone or iPad
I programmed a website, and for the menu I used jQuery hoverdrop. But it doesn’t open at all on iPhone or iPad. Other phones and tablets work normally (it just takes a little longer to load…
-
1
votes2
answers255
viewsMultiple clicks
I have the following code snippet: var Tannerie = { init : function(){ $('#prev').mouseover(Tannerie.prevClick); $('#next').mouseover(Tannerie.nextClick); }, prevClick : function(){ $(this).click();…
-
1
votes1
answer476
viewsMultiple POST Optimization via Ajax
I have a small application, and I built it as I got to know Laravel, so nowadays there are things that I see are wrong and I try to adapt to good programming practices and one of the key points are…
-
1
votes2
answers278
viewsSlow to load facebook like button
I have a div where you can find the social media section. I have a Facebook, Twitter and Google Plus like button. The Twitter and Google Plus finish loading together and is shown, while the Facebook…
-
1
votes1
answer8997
viewsHow to make a simple text editor with jQuery, PHP and Bbcode?
How can I format text in a textarea with Bbcode? Like, create a mini text editor with shortcuts to paragraph, bold, center, these basic options, nothing too custom.
-
1
votes0
answers107
viewsProblem when closing Lightbox when I call AJAX
I’m in trouble when on this site http://santins.com.br/_z/holcim session access PROJETO and click on RELEASES. While I do not click on any titles that loads via AJAX the content of the post, the…
-
1
votes2
answers191
viewsDisable part of the form by Jquery
I don’t have much experience with Jquery and Ajax. I am developing a form that when selecting the Radio Button to send anonymous information, it should make invisible the part of the form that…
-
1
votes1
answer5316
viewsUncaught Syntaxerror: Unexpected token
I get this error in the 3rd line of this code to make a lightbox appear with an image by clicking on it, using fancybox 2, with Cakephp. I can’t figure out why this is happening, someone can help…
-
1
votes2
answers597
viewsData-Tables misaligning table title and body when scroll is applied
I’m trying to apply the plugin DataTables to the tables in my template, the problem is that when I apply the scroll, the table ends up misaligning the title of the table of its respective data body.…
-
1
votes2
answers1136
viewsCarousel style with 3 slides
I’m trying to make a kind of slider where the middle slide appears as main and the sides will cut according to the resolution, but I was having problems in the IE and incredible that it seems the…
-
1
votes1
answer73
viewsUse pagination in 2 lists without one influencing the other
I’m listing images and characteristics of them that are collected from the database. As can be seen below, I am already listing the 2 images and their characteristics, each image is from a table in…
-
1
votes1
answer598
viewsJquery only validates one multi-element
I would like to show the required message in each input element in addition to performing the verification in each pair of checkbox and input text, but it is only occurring in the first input I am…
-
1
votes2
answers446
viewsJcrop distorting the image at the time of selection
I want to use Jcrop in one .dialog(), but it is not working properly, the selection of Jcrop is getting wrong, distorting the image: Instead of doing like this: The js is like this:…
-
1
votes2
answers960
viewsHow to format several bxSlider on the same page with different styles?
I am developing a site whose pages will have 3 or 4 sliders (bxsliders) my problem is that I would like to format one by one, especially the margins of the buttons below…
-
1
votes1
answer3900
viewsHow to make smooth bearing with button or anchor?
I need some help in css, and js. I need a js to do that when I click the down button, or up, scroll a div to a certain size: Example link: http://jsfiddle.net/A64S2/…
-
1
votes2
answers260
viewsDatatables - Rowspan in <tbody>: Cannot read Property 'classname' of Undefined
I am using Jquery and the Datatable plugin in my tables. So in some situations I need to use rowspan in the body (tbody) of my tables, which generates the following error in Google Chrome and ends…
-
1
votes1
answer611
viewsHow to change the folder in jQuery File Upload plugin?
How to change the folder where the jQuery File Upload plugin fetches the images to display? Currently the folder is "files" but I could not find the location where it is indicating the folder to be…
-
1
votes1
answer228
viewsHow to avoid page being displayed in another tab
I have this jquery $(window.document.location).attr('href', '/gerenciarpdv'); And that button calls that page <button id="teste1" name="teste" class="btn-pesquisa"…
-
1
votes5
answers5718
viewsPopup with AJAX and jQuery
I need to open a popup with my database information, when you click on a certain item in a grid that I’m displaying on the screen. How do I display this popup?
-
1
votes1
answer90
viewsjQuery Mobile: page Events
I can’t quite understand the hierarchy of page Events jQuery Mobile. How do I assemble all the content of an HTML page (and its modifications) and just present it to the user end when the page is…
-
1
votes1
answer474
viewsGrab Javascript/jQuery from a button
I have this button: <div class="grid_17"> <button value="novaPesquisa" class="btn-pular-passo pull-right" id="btnEndereco">Continuar</button> </div> There is a <form>…
-
1
votes2
answers329
viewsChange Href with jQuery
I’m trying to copy href from the buy-button class to . test, but change "redirect=true" to false. I can just copy, but not change the redirect. Can anyone help me? <a class="buy-button"…
jqueryasked 10 years, 6 months ago lucas inverso 143 -
1
votes2
answers722
viewsHow to update a table by ID?
I have a table and in it I have a icon with the event onClick, the script until then is doing his job which is to change the state of true for false, if this is clicked. My job is to update this…
-
1
votes1
answer46
viewsProblem in effect acordion simple in paragraphs
Is this practicable? Or have any suggestions without jQuery UI plugins? HTML CODE: <div class="minhaclasse"> <p class="titulo">Título<br>resumo<br></p> <p…
-
1
votes1
answer412
viewsDrag & Drop Jquery UI how to hide Div after drop?
I’m trying to do the following operation, I have 3 Divs a Droppable and 2 Draggable, I want when I drag one of the draggables and drop on top of the droppable the Draggable is hidden by stopping…