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
answer1432
viewsReturn ajax function with result of an sql search
I am doing a section on my website, in which there is a field select. When I select something in that select, i want to conduct a BD search by returning the information about that item selected to…
-
2
votes2
answers321
viewsWrite a new html with js or jquery
I wanted to know if there is a way to present a new html page using a string containing all the content of the new page that I am trying to present, the code is below:…
-
2
votes2
answers1317
viewsWhy content-type false AJAX - JQUERY
I am sending files via AJAX with Jquery, using the FormData(), and then a question arose, why does it work: $.ajax({ url:"action/receipt.php", method:"POST", processData: false, contentType: false,…
-
2
votes1
answer647
viewsCheck if the contents of the div loaded
It is possible to know if the content within the div charged with jquery? Equal to body. I want to make a visual effect of the kind where an image of loading and only after the posting inside the…
-
2
votes1
answer172
viewsUpdate a zf2 view every 1s via jquery/ajax
I have a table as shown below, I need it to update every 1s, but I have no idea how to do. I used an html 5 tag, but it updates everything, I just want to update only the table. My View <?php…
-
2
votes3
answers28262
viewsUpdate DIV Automatically (autorefresh) without updating whole page
I wonder if there is a way to update only one div automatically at each x seconds without having to update the entire page this would be possible?
-
2
votes1
answer343
viewsHow to catch an element via jquery in an object created in the bootbox.js plugin?
I have an object created inside a container-Fluid div. I create the object Bootbox without any problem to generate a modal confirm (code below). $("div.container-fluid").on("click",…
jqueryasked 9 years, 1 month ago Bruno Nascimento 489 -
2
votes1
answer53
viewsAbout each, this and attr in jQuery
Good morning friends, I have a big question regarding these attributes (if I may say so), I would actually like to understand how each of them works, I wanted to understand why use each of them, I…
-
2
votes3
answers1216
viewsCount elements and display a quantity
I need to display a certain number of HTML elements. For example: <div class="conteudo"> <p>Primeiro parágrafo</p> <p>Segundo parágrafo</p> <p>Terceiro…
-
2
votes1
answer351
viewsPass data-id="@Milestones.Code" to a modal
My system should work as follows: By clicking the button highlighted in red in the image below He opens this modal here: This already happens, but now I need to click on the first image, it takes…
-
2
votes2
answers216
viewsHow to show elements in sequence?
I’m trying to show the elements in sequence: <p class="desc">1)INFORMACAO1?</p> <p class="desc">2) INFORMACAO2</p> <p class="desc">3)INFORMACAO3</p> <p…
jqueryasked 7 years, 10 months ago Joao Marcos 183 -
2
votes1
answer294
viewsFirst value of Select2 is not shown when you use i18next
I am doing internationalization with the lib i18next, everything goes right, it translates puts the values within the select2, but the first value is not shown in any way, even if I open the select2…
-
2
votes1
answer7488
viewsHow to count down with jQuery?
I’m writing a script for study purposes at that link and would like to implement in this script a clock with countdown as is done on collective purchase websites and would like the help of you to…
-
2
votes1
answer186
viewsHow to leave ZIP form sliding equal to ifood site?
This is the form of the website I want to change: artnaweb.com.br/pediragua Leave the same as this: ifood.combr. I don’t understand Jquery. I have knowledge only of HTML and CSS. Thank you!…
-
2
votes1
answer94
viewsCakephp Submit form using Jquery?
I have a form in Cakephp and I want to make the Submit of this form using Jquery. I’m looking for a solution on how to do this without using Cakephp’s Jshelper, I want to use only the same native…
-
2
votes0
answers366
viewsSend POST with Ajax and Codeigniter
For almost 1 day I am facing a problem that so far can only solve (make sure I was right) doing the wrong, IE, gambiarras. I’m trying to create the Transparent Checkout of Pagseguro but I can’t send…
-
2
votes1
answer65
viewsAngularjs - Where to put Jquery/Javascript functions
I have some functions in jquery that normally would be in a file . js even, but when I use Angular where should put, following good practices? Example: I have a function that determines whether or…
-
2
votes1
answer1015
viewsReal Time Notifications with javascript
I’m building a Java application that should show real-time notifications on the screen. A teacher requests a reservation; Reservation data is stored in a json object (or in a request table); At the…
-
2
votes3
answers2741
viewsSend Javascript Array to Controller via POST
I’m trying to send a Array of int of JavaScript to the Controller via POST. See my array: console.debug(itens); Array [ 1, 2 ] I’m trying to send it this way: $.post('@Url.Action("MinhaAction",…
-
2
votes1
answer65
viewsJquery find key from a value
I have an array with values that vary according to the page. I’d like to know how to catch the key of a specific value. Example: minhaarray = [5,10,15,20,25] How do I extract the key of a value 15?…
-
2
votes1
answer301
viewsToggle css class in a Nav toggle, using Jquery
I’m making a menu with a toggle using Jquery. The menu is working perfectly. I’m using a class from Font Awesome to show the icon on the button to activate the toggle. I want to change the class…
-
2
votes1
answer344
viewsPrimefaces - Select Datatable line via Jquery, Javascript or PF
How do I select a line from a Datatable, using Jquery, pure Javascript or the PF javascript command?
-
2
votes3
answers66
viewsHow do I use my jQuery extension in the on function?
In jQuery, I know it is possible to extend and create functions for certain types of operations through $.fn. Thus: (function ( $ ) { $.fn.clickOut = function (callback) { var that = this;…
jqueryasked 9 years, 1 month ago Wallace Maxters 102,340 -
2
votes2
answers691
viewsProblems capturing input when opening modal
I am trying to capture the value of a modal input as soon as it is opened. I did it as follows, but it did not work: $('#modal').on('show.bs.modal', function (e) { var var_tipo =…
-
2
votes2
answers43
viewsProblem with '.data()' and its value within an if
I’m creating some If's not to lose the habit of using them, but when trying something a little different from what I usually do, an error occurs, the if does not work. How can I fix ? I tried in the…
-
2
votes0
answers220
viewsJavascript code only works on the first run
The code causes the search button to disappear and then appears an input to enter the search $('#dispara').on('click', function (event) { event.preventDefault(); $('form div').addClass('active');…
-
2
votes2
answers909
viewsGenerate HTML elements via Javascript
I need to create a code that after passing some parameters it generates a graph similar to the image below, I thought of creating a table for each activity. Does anyone have any tips, or do you know…
-
2
votes4
answers222
viewsDoubt in jQuery variable creation
Researching materials on jQuery I noticed that some articles use two types of variable declaration, some using the dollar sign and others not, as in the example below: Alternative 1 var $row…
-
2
votes2
answers286
viewsformat value with javascript
I have the following variable: var teste = "006BC953F26DAC56C51D61"; and I’d like when to display it to be like this: console.log(teste); //006B-C953F-26DA-C56C5-1D61 I’m in trouble because it…
-
2
votes1
answer190
viewsHow to show connection errors in Htmls with a JSON?
I was developing an HTML that accessed a JSON file. When, out of nowhere, the internet fell off my house and I ended up thinking about this question: Is there a way to catch a connection error and…
-
2
votes1
answer752
viewsHow to hide div when selecting radio options
As trivial as it may seem I’m having trouble executing this script, the problem I have is this, when entering a page I show a div with selected content from my database and this is being done…
-
2
votes3
answers989
viewsExecute command with variable -JS
Good morning , On a page, I have some div to which I put an effect for them to appear (toogle) I would like that effect to be alternated whenever I perform its respective function. Then, I…
-
2
votes2
answers499
viewsShow/ Hide div, changing icon
I got the following Snippet, where by clicking on the content of the div is shown (revealed) and when clicking on the content of the div is collected (hidden), however the images are not changing…
jqueryasked 7 years, 8 months ago Marcos Henzel 797 -
2
votes2
answers581
viewsGet the ID of a line from a Gridview query
I made a query where it is populated a gridview, the columns are code, category, noprazo, foradoprazo. In the columns noprazo and foradoprazo, I left them as linkbuttom that by clicking on the…
-
2
votes1
answer39
viewsCreate a Read More with jQuery
Hi, I have a problem. I have the following code in jsfiddle: https://jsfiddle.net/o7x14gzd/1/ for the creation of a "read more" button with jQuery. I don’t know where it’s wrong, but when the text…
-
2
votes1
answer8914
viewspass variables from AJAX to PHP
I’m trying to pass values through two variables in AJAX to a PHP file, but it’s not working. if I put data: { idUsuario: "5", idEscolha: "1", } right. What is wrong? $(document).ready(function(){…
-
2
votes2
answers196
viewsAjax Jquery - Accumulating requests
Good morning to all, I have a very strange problem with a system I picked up for maintenance. All the requests I make for the server have been accumulating. For example: - carry out user deletion…
-
2
votes2
answers49
viewsproblems when creating dynamically Event listeners
http://jsfiddle.net/njszasq7/ JQUERY/Javascript verificaCamposRepetidos(".teste", array1); verificaCamposRepetidos(".teste1", array2); HTML: <p id="parte1"> <span>VALORES de 1 a…
-
2
votes3
answers283
viewsremove dynamic div with jQuery counter
Hi, I am generating fields dynamically using Jquery, and for each field I add at the end of id a counter. I wondered how I could do to remove the div that encompasses the button and the fields. This…
-
2
votes2
answers622
viewsChange the value of a parameter passed to a function
I have a dynamic form that I add several fields and create together a div that passes by button that is assigned an event onClick for passing a function that receives a parameter. This parameter is…
-
2
votes1
answer49
viewsHow to do time reading in the database?
Good night, I am here trying to send a value to a php file, and get a response from that same file, that automatically. But something is going wrong. I am a beginner in this area and am having some…
-
2
votes4
answers810
viewsValidate Javascript fields
I have several fields and others in display:none (In advance I notice that I have walked in the stack and I even found a similar question but I could not have the expected result.) I need to…
-
2
votes1
answer2321
viewsdisable double click across site?
Is it possible to disable double-click on the entire site and any element? Is this possible with jQuery or HTML? I want to prevent the user from 2 clicks in a row on links, buttons and etc.
-
2
votes1
answer1247
viewsHow to take the Dropdownlist ID and move to a jQuery variable?
I have the following Dropdownlist: <div class="editor-field"> @Html.DropDownList("ProdutoId", String.Empty) </div> And this jQuery function that when the user presses the button will…
-
2
votes2
answers50
viewsCheck type with jquery
Well I have two buttons on a form, being them: <button type='reset' onclick="history.back()">CANCELAR</button> <button type='submit'>ok</button> I have the following jquery…
-
2
votes1
answer67
viewsJquery - Mouse events vs Z-Index
I have the following problem: I created a div and within it there is a second div with a text. <div class="red"> <div class="blue">OK</div> </div> The div-parent received an…
-
2
votes1
answer102
viewsInteraction between pages
I have a question and would like some tips to update a page through another page. Example: On page "A" I have a list of products and a link to page "B"; Page "B" will open in a new tab and has a…
-
2
votes1
answer238
viewsCompare value of Div
It is possible to scan a div and return its value. For example: <div class='result' id='add9' align='middle'> 1</div> <div class='result' id='add9' align='middle'> 2</div>…
-
2
votes2
answers2726
viewsRun Function only when div appears
Hello guys I have an accountant and I wanted it to start when the div #time starts to appear on the screen <script type="text/javascript"> $(document).ready(function (){…
-
2
votes2
answers318
viewsHow do I leave an element with page height all the time?
I have the following problem: I need to let a div have the screen height the time. <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" id="topo">...</div>…