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
votes3
answers73
viewsRemove event handler after 3 click
I have this code, which I need the click event to be removed after x attempts. Example: http://jsfiddle.net/welguri/s0x213jL/ var qtdadeCliques = 0; var eventCon = function(evento){ qtdadeCliques++;…
-
0
votes0
answers241
viewsJquery mobile - does not load my main.js after the change page
I built a page using jquery mobile with the function of all buttons in a main.js file Divs that when clicked I check in js and do ex action: $( "#mais-op" ).on( "tap", function() {…
-
0
votes1
answer436
viewsCarousel or Cycle displaying 6 elements in grid format
In the HTML code that follows below, I have a listing of images within a container. I would like to limit the display of these images in a table of 2 lines and 3 columns and paginate to look better…
-
0
votes1
answer156
viewsUse jquery to control scrolltop
I have a div .menuFixo, that when it reaches 31px scroll she stay with top: 0, otherwise, stay top:31px, I did with Jquery, but it didn’t work. $(window).scroll(function () { if…
-
0
votes1
answer99
viewsHow to create a jQuery function to pull the menu up?
Would you like to use jQuery to go up and down this menu. Can you help me? The end result should be this ... I started the code but no longer know how to continue. $("#esconder_menu").on("click",…
jqueryasked 9 years, 8 months ago Marcos Vinicius 7,188 -
0
votes0
answers59
viewsOpen link created via jquery in modal window?
My problem is as follows when the user clicks on the add link this opens a modal window by clicking save sends the data pro server-side via ajax if it is all right to create a new Row in the table…
-
0
votes4
answers853
viewsClick event only works the first time
I’ve looked for it in other places but I couldn’t find a solution that would work for me. This is the site: http://pedrowebdesign.hol.es/damaso/ These 3 squares at the top, are locations for photos…
-
0
votes1
answer386
viewsInsert result from script or script code into a div
How do I load one script on a page, the result appears on a div? Example: <script type="text/javascript"> /* conteúdo do script */ </script> <div id="script"…
-
0
votes2
answers115
viewsGet div above the current
I have a set with several Ivs, <div>1</div> <div>2</div> <div>3</div> <div>4</div> I am giving each of them, and I need to know what is the number…
-
0
votes0
answers98
viewsIs it possible to select graphics card?
I am wanting to create a small web program where I need to select a video card. It is a software for displaying music on projector. As the PC will have two boards one will only show on projector.…
-
0
votes0
answers129
viewsSelect2 does not open when screen is smaller
I have a problem when Select2 is in a form and near the end of the screen, so it does not open because it understands that there is not enough space, I would like to know how to do in this case. The…
-
0
votes4
answers1981
viewsGo to the first option after clicking the button
I have the following HTML: <select class="estados" name="estado"> <option class="op1" value="">1</option> <option class="op2" value="">1</option> <option class="op3"…
jqueryasked 9 years, 8 months ago Felipe Viero Goulart 3,693 -
0
votes1
answer1130
viewshow to compare with javascript two datepicker fields
I need to compare two fields in my html that are with datepicker. Follow my code below: var inicio = $("#Periodo_De").datepicker("getDate"); var final = $("#Periodo_Ate").datepicker("getDate"); if…
-
0
votes1
answer261
viewsDisable checkbox
I need a help, like I do to disable when the first checkbox is selected. On the link is an example of what was riding. http://jsfiddle.net/welguri/v4s2jep4/1/…
-
0
votes1
answer1768
viewsHow to increase height as scroll scrolls down the page but not decrease with scrolling up?
I’m on a single-page project, and I need a div that increases as I scroll down, but when I scroll up it can’t decrease, it has to stand still, the size it was until it went down again. I am using…
-
0
votes2
answers787
viewsReceive id from an autocomplete option
I have the following autocomplete defined in HTML HTML <label class="input"> <input type="text" list="list" id="entidade" placeholder="Cliente" onblur="dadosCliente ( )"> <datalist…
-
0
votes1
answer381
viewsSorting with jquery.dataTables.js and jquery.dataTables.columnFilter bug
1Hello, friends I’m trying to put the filters in the first row of the table head, it almost worked if it were not for the fact of ordering, as shown in the image. Sorting cells have to be in the…
jqueryasked 10 years, 1 month ago Julio Bandeira 111 -
0
votes2
answers17094
viewsHow to validate password through Javascript
I have a form that I need to confirm that the fields, Novapassword and Cnovapassword, are equal. Only if the two fields are equal will the system allow from the post to the file troca_password.php…
-
0
votes0
answers70
viewsRelationship between the two
Here’s the thing, I’ve got an Entity Machine and another Predicted Entity, and they’re both in the same Bundle. What I intended was that in machine 3, which has already been created, every 100…
-
0
votes1
answer498
viewsSort by date
Look it is possible to sort a table by date in javascript, symfony2 or jquery? I have a table with various data and records and I would like to sort the records by date.
-
0
votes2
answers98
viewsComparison of dates
I want the message to appear when the user enters no date or the initial date is longer than the final date. The code I made was this: /** * @Assert\True(message = "Erro! Verifique as horas. Data…
-
0
votes1
answer890
viewsBy clicking Download PDF page
Hello.. is the following: I have a page with fields to be filled ( http://www.sustentare.net/cartoes/autoconhecimento/ ). By clicking on a button I would like him to download this page with the…
-
0
votes1
answer54
viewsHow to pass a Jquery plugin as a parameter for the On event
I use the Datatables plugin, and in the table there will be the option to edit and delete, I want to show a confirmation if the user click delete. Therefore, I will use the plugin "confirm",…
-
0
votes1
answer2400
viewsHow to get the selected Row jquery datatables
have my grid: $.fn.dataTable.ext.legacy.ajax = true; var grid = $("#gridGrupo").dataTable({ "language": { "url": "/Scripts/Libs/DataTables/ptBr.txt" }, "processing": true, "serverSide": true,…
-
0
votes2
answers204
viewsjQuery animation before form submission
I have this code, the animation happens but the redirect to the next page (work.php) nay. I mean, you’re not getting into the condition if (isset($_POST.... If I comment on the piece of code…
-
0
votes1
answer61
views -
0
votes0
answers517
viewsPerform a Jquery action by clicking a link
I want you to click on some of the links in the menu of my site, run scrollTop. $(document).ready(function() { $(".menu-topo a").click(function() { $('html, body').animate({ scrollTop: (400) },…
jqueryasked 9 years, 7 months ago Sérgio Machado 31 -
0
votes1
answer52
viewsLowest index for multiple elements
By default jQuery always returns the highest index when the selector returns more than one element, as in the example below: <ul> <li>1</li> <li>2</li> <li…
-
0
votes2
answers1677
viewsJquery mask when typing text
I have been researching some Jquery masks to apply on a system, but I noticed that in some examples the mask is displayed when you click on the input, and in other cases the mask is applied during…
-
0
votes1
answer301
viewsHow to get value from a Radiobutton field in JS?
I can’t get the value of my field RadioButton @Html.Label("Ativo") @Html.RadioButtonFor(v => v.Ativo,"S", new { name="ativo"}) @Html.Label("Inativo") @Html.RadioButtonFor(v => v.Ativo,"N", new…
-
0
votes0
answers46
viewsCreating a PHP, Mysql and Jquery Chat
I am creating a chat inside an administrative panel, as has several on the web. I’m having problems to "think" how I would control the chat so that, for example, only the users of that particular…
-
0
votes1
answer194
views -
0
votes1
answer440
viewsDialog to feed Form field
On my page there are fields that are tabulated data, where the user must select an existing data in the table For simple case, I’m using the <select><option> of html fed a table reading…
-
0
votes1
answer134
viewsFunction does not continue after second run in the same class
Well, I’ve been developing a kind of "content slider" that changes the content of a certain div ('.item .frase-test') for the content of the following item in the order of <span>. I’ve managed…
-
0
votes3
answers983
viewsGet URL Code ID and insert into JS
How to get the code galeria of url http://URL/galerias.php?galeria=casais and put in js? $(document).ready(function() { $('#conteudo').load('galeria.php?galeria='prodId'', function(){ $('#gallery…
-
0
votes0
answers155
viewsMove scroll from <iframe>, <embed> or <Object> with PDF
I have a reading project online, I’m using the tag iframe to display the pdf page. I need to save the position of the scroll and restore at next reading. Sample snippet: <html> <head>…
-
0
votes1
answer1163
viewsProblem with accents in . serialize()
The .serialize(); takes all form information, but with different accents ex: LOAF stays P%C3%83O , when I test the app on localhost the accents work right but when hospedo gets like this BREAD ??? I…
-
0
votes1
answer137
viewsInput with V or F only
You can place an input where it receives only (V) or (F)? <script type="text/javascript"> jQuery(function($){ $("#resposta_vouf").mask("(a)"); }); </script> <input type="text"…
-
0
votes2
answers484
viewsFind input values with same class
How can I act to sum the values of inputs of the same class being that, the number of inputs does not have a standard, ie, can be that time the class p1 has 5 instances, hour 1. The structure would…
jqueryasked 9 years, 6 months ago Rafael Barbosa 2,855 -
0
votes0
answers36
viewsTextbox with Autocomplete
I want to make a textbox show me the names of registered users in the bank while I type. Ex: if I type the letter r, the textbox should show me some options that contain the letter r, but, I’m not…
-
0
votes1
answer449
views -
0
votes2
answers378
viewsExecute JS command using string
I have a command to take the size of my json, but I need to use a string to indicate which object I want to take the size: var comando = data.result[0][0].'Pedidos'.length; the mistake you give me…
-
0
votes0
answers44
viewsStop scope until change input value
I have a form, where a captcha is valid via json: $.getJSON('?verify&string=' + captcha, function( content ){ if(content.comparation){ $("#tokenCaptcha").val(content.token); }else{ complete =…
-
0
votes0
answers89
viewsDoubt in Jquery Filer plugin
I’m trying to use this very cool upload plugin I found, Jquery Filer 1 I just can’t seem to do two things on it. See if you can help me. 1- When I click the recycle bin button in the thumbnails of…
-
0
votes3
answers86
viewsError while selecting select text
Good evening, folks. I have a select that lists the cities of the respective state. I’m using this code to select a city from the list: $('#txtCidades…
-
0
votes1
answer1011
viewsajax function does not work
I am using this small function to execute my ajax without mimimi, see var HTTP = 'http://127.0.0.1/'; function ajax(to, data) { $.ajax({ type: "POST", url: (HTTP + to), data: data, cache: false,…
-
0
votes3
answers637
viewsLeave paging fixed using jQuery datatable
I have a table and I’m using it datatable of jQuery, however, my table has a lot of column, and I did a scroll on it, but in this my paging scrolls along with the scroll, would have some way to…
-
0
votes1
answer970
viewsUse Ancora and update the page with Javascript
Good morning, I have a html with several tabs, when I do some procedure, I need to update the page, when you return from the upload, I need you to go back to the tab where I left. I added some…
-
0
votes1
answer897
viewsJquery select all elements containing the data-id attribute
Hello, I was wondering if there is any way to search all the existing elements on a page containing the attribute data-id just like I can do when I want to get a native HTML tag. for example, if I…
-
0
votes3
answers14211
viewsPass data through POST with jquery
On one page I upload a list of people with a checkbox next to each one. I want to move to the next page all the people I selected. I’m trying to do it like this: In this code below I check who is…