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
answer1067
viewsEditable table with jquery and php?
I’m trying to make a dynamic table for editing the data without refresh, but when double-clicking on the line nothing happens, follow the code Jquery $(document).ready(function(){ $('#tblEditavel…
-
3
votes1
answer102
viewsjquery Intellisense does not work in VS2015 Community
I can’t make it work at all. Man _references.js /// <autosync enabled="true" /> /// <reference path="bootstrap.min.js" /> /// <reference path="jquery.mask.min.js" /> ///…
-
3
votes1
answer485
viewsPass the (integer) Return from a Controller method to the View
I have this method in a controller: int GetSpot() { List<CompanyDetail> topCompanies = GetTopCompanies(); CompanyDetail topCompany1 = topCompanies.Where(x => x.Company.TopCompany ==…
-
3
votes3
answers922
viewsCheck external file loading with JS
My home page has a video as background but in some moments the video takes to be loaded. In this situation I thought of creating a loading before the page is displayed, my doubt is how can I check…
-
3
votes2
answers316
viewsjson_encode returns the asort() order
The method asort() is used to sort arrays, without losing the index. I sort both the SQL search and the array. However, when sending the data via JSON (using json_encode), he rearranges the keys.…
-
3
votes4
answers949
viewsChange select element value (Ajax + php) with innerHTML
Hello, I’m doing the famous combo of state carries city. Everything is working perfectly, as I will debug in my script, until the moment that must change the value of select (options returned from…
-
3
votes1
answer839
viewsJquery Validate max as per condition
I’m making a jquery.validate, can make max dynamically, something like: ... max: function () { return $('#QtdEstoqueHidden').val(); ... ok, it worked! (I store the max value in a Hidden field that…
-
3
votes2
answers443
viewsRemove element by clicking the jquery link
I need to make sure that when clicking on the link it removes this element tr that is the link, someone can help me? <?php foreach ($emails as $v): ?> <tr> <td><?= $v->id;…
-
3
votes1
answer1472
viewsHow to change content within div with Ajax/Jquery?
Here lists all records that when clicking edit opens a modal with description value. <?php foreach ($beneficios as $v): ?> <tr> <td><?= $v->id; ?></td> <td…
-
3
votes1
answer62
viewsValidation does not work jquery
Colleagues I made this script to validate the access, but it’s not working. Can anyone tell me where the error is? <html> <head> <title>title</title> </head> <script…
jqueryasked 7 years, 7 months ago user24136 -
3
votes1
answer160
viewsI want that when passing the mouse for a Li, the result appears in the DIV
I want that by passing the mouse by a li, the result appears in div placing the mouse on the Son 2: example: Father 1 > Son 2 or in the Father 2: Father 2 <li ><a href="#estaEm">Pai…
-
3
votes2
answers376
viewsSort Select by javascript ID
Folks I have a select via ajax pulling data from my database only when it comes to presenting the select, I’m not being able to present in order to ID Crescent, <div class="modal-body">…
-
3
votes3
answers2161
viewsHow to leave buttons fixed in floating div
I have in my system a situation similar to the one I gave of example. A modal bootstrap that can open in basically any place of the screen. This modal does not occupy every screen. Within this…
-
3
votes1
answer599
viewsFullcalendar displayed in wrong time
I’m implementing the FullCalendar in a project, I inserted some Events in the database and return them via Json. But when displaying them on the screen, they come with the correct time date, but the…
-
3
votes4
answers1118
viewsSelect input with a certain class within a form
I have a form and within this form I am adding a certain input dynamically via jquery using a button, these inputs go to a array in a controller C#. Currently I’m doing so: for (var j = 0; j <…
-
3
votes4
answers1937
viewsView data format en dd/mm/yyyy
Good afternoon! I’m using the plugin air-datepicker for dates. When I click on the field, I see the format en dd/mm/yyyy. Now, therefore, I want this date to be displayed in the same dd/mm/yyyy…
-
3
votes2
answers1423
viewsHow to force download local information in the browser?
I’m trying to do something kind of like this: $('button').on('click', function() { obj = {}; $('pseudoform').find('input,textarea').each(function() { obj[$(this).attr('name')] =…
-
3
votes1
answer375
viewsASP.Net MVC application with Jquery Bootgrid does not load data
I created a very simple application (customer registration) using ASP.Net MVC 5 + Entityframework 6 (codefirst) + Mysql database. Using as main component the Jquery Bootgrid for data handling. It…
-
3
votes1
answer830
viewsI cannot change the validation mask by clicking on a Radiobutton
I am trying to make a mask for CPF and CNPJ within the same field, the user can choose whether to fill the CPF or CNPJ through two Radiobuttons, but the problem is that I can’t change the mask of…
-
3
votes1
answer2416
viewsFreight calculation with WS post office via javascript
I’m trying to calculate the mail freight via javascript, but when I do the test does not pull the data and returns me the error Xmlhttprequest cannot load…
-
3
votes2
answers433
viewsCheck if email is registered in the BD
I’m doing a search in my BD to verify the existence of email, avoiding the registration of the same again, but I’m having problem in return, the script below sends and treats the return. if…
-
3
votes1
answer44
viewsPreparation of text for pagination description
I have a text showing how many items are being viewed per page based on the total number of items in the database. See an image: I created an "algorithm" (which I don’t think is cool) to define in a…
-
3
votes2
answers1065
viewsHow to confirm that the request was made through the website securely
Good would like to know if there is any way for me to confirm that the request really came from the site and not from outside, and is also being made by the page with the user action. I tried to…
-
3
votes2
answers1164
viewsHow popular a select with Jquery
I have a registration screen where the user can add or not phone numbers. I am adding fields for entering the phone dynamically, but one of these fields is a select that will bring data from the…
-
3
votes3
answers261
viewsTake the value of the Jquery variable out of if
I am assembling a script that checks several inputs select, checking whether they have been selected. I’m at the beginning, so the example here has only one field. $("#passo_4").click(function(){…
jqueryasked 7 years, 3 months ago Rogério Pancini 397 -
3
votes2
answers255
viewsWHM/Apache + jQuery Ajax Server Configuration
Recently I started having the following problem in my server domains with WHM: When executing an asynchronous AJAX call in the background, I cannot proceed, that is, I cannot access anything else in…
-
3
votes1
answer247
viewsShow codes for user
Hello! I have one forum and, in publications of my users, they can add codes to display them using the bbcode tag [code][/code]. I’d like to know how to make stylize the code, as it happens here in…
-
3
votes2
answers8342
viewsQuotation marks inside quotation marks and again inside other quotation marks?
I have a string variable called [Content] and I want to assign it the tag of a button that calls a javascript. I’m trying this way: Conteudo = "<input id='btnOculta_" + lin + "' type='button'…
-
3
votes2
answers466
viewsHow to make a listbox where I can select more than one value?
I want to make a listbox, where the user can select several options, but using select Multiple, I have to hold Ctrl, however this is not ideal, many people will not know it. Anyone can help? <div…
-
3
votes3
answers2288
viewsHow do I open a floating div tooltip style by clicking an input?
Hello. I got a problem I can’t fix. I have a text input and I needed when I clicked on it to open a window or floating div underneath it like a tooltip but with HTML inside it. How can I make that…
-
3
votes3
answers422
viewsClone <select> jquery / javascript
Guys, I’m a beginner and I’m having a hard time running this code I used from another topic right here (Add and Remove Fields with Javascript). Here it did not run, but on my localhost it even…
-
3
votes0
answers40
viewsJS error regarding Piechart NVD3, I cannot identify the problem
After updating the version of nv.d3.min.js for version 1.8.6, when I hover over Chart shows countless errors in function return, and the tooltip stopped working too, read various manuals and…
-
3
votes0
answers49
viewsSEO, what are the odds that Googlebot will read this Rich Snippets code?
What are the odds of Googlebot read that code Rich Snippets? Tips on how to improve are welcome... I can only use Front-END, if you hadn’t already used one PHP to solve this. <script…
-
3
votes1
answer263
viewsPicking up more than one element with Jquery/Javascript
Good morning! Could I get more than one element with Jquery? For example, I’m doing this in my code: if (!is992()) { $j('.filters .title--sm').click(function(){ $j('.filters__list').slideToggle(50);…
-
3
votes1
answer466
viewsCreating routes for paging
I created a Restfull api in Laravel. In the project I have javascript and html in a folder that calls the API. Soon I created a pagination in the proper Laravel that I called in my own project in…
-
3
votes2
answers58
viewsReturning linked data
With the help of Milrak Pereira Pessoa and Wéllingthon M. de Souza, I edited my code... I have a product code and it has 5 types and 5 descriptions. I am trying to bring to the user the types and…
-
3
votes1
answer51
viewsHelp with Hover jquery
I’m trying to make this menu lively (https://minecraft.net/pt-br/). Gifs for testing (get the ): State Hover - Normal state - I would like to do so, by hovering the mouse over the anchor to take the…
jqueryasked 7 years, 1 month ago AntonioSantos 161 -
3
votes2
answers949
viewsOnly take a PHP variable from another page with Jquery
To get the content of a page I use the date, but I would like to know how to get only one variable on another page. I use this code: jQuery(document).ready(function(){ jQuery('.teste').submit(…
-
3
votes2
answers1083
viewsChange data without refresh with jquery
I confess that I don’t get a lot of Jquery and that’s why I’m in need of some help. I would like to update a product information, but without having to refresh the page. Example.: When the user…
jqueryasked 7 years ago user24136 -
3
votes1
answer131
viewsDisable property using Draggable jquery UI and javascript
The idea of this code is that after the items are dragged and dropped into the ,they change the disable=true property to disable=false. Someone knows how to do? <style type="text/css"> *{…
-
3
votes3
answers307
viewsButton and span logic from CSS
I have a button and a span from the following code: <div id="onestepcheckout-place-order"> <button type="button" class="button btn-proceed-checkout btn-checkout" title="<?php echo…
-
3
votes1
answer735
views -
3
votes1
answer95
viewsDisable button while form is not valid to have no more than one request and duplicate saved data
I need to disable a button until all form fields are correct. Thanks in advance. $('#btnSalvar').on('click', function (e) { var button = $('#btnSalvar'); button.prop('disabled', true); var valid =…
-
3
votes1
answer313
viewsInserting Vue Component into the DOM via jQuery
I’m using Vue in an application where I have a list of items and a button to add more items. By clicking add I load an external html with a component: <div class="gutters-8 col-lg-6"> <div…
-
3
votes2
answers1419
viewsCreate and assign loop variables For
How to make this logic within a loop FOR ? var G1 = $('#G1').text() var G2 = $('#G2').text() var G3 = $('#G3').text() console.log("NaN") console.log(G1+"\n"+G2+"\n"+G3) console.log(G1+G2+G3) G1 =…
-
3
votes3
answers1292
viewsHow can I manipulate CSS from parent element to clicked element?
I need to change my code so that when I click on a div, the parent div changes its css. For example I click on an input inside the div, and the parent div changes its css. I have the following code:…
-
3
votes3
answers451
viewsInsert character at last cursor position inside input
I have the following code: $('#mais').click(function(){ $('#console').val($('#console').val() +"+"); }); $('#menos').click(function(){ $('#console').val($('#console').val() +"-"); }); <script…
-
3
votes2
answers269
viewsLength of jQuery does not update with the append, how to resolve?
I am working on a script that makes it load more records from the database when the user arrives at the end of the page scrolling. PHP/SQL is right, the problem is that jQuery does not correctly…
-
3
votes1
answer353
viewsHow to fill in selected input only
I have a problem filling a field within a table that is within a loop For, and one of the titles of this table is a button modal, that as it is clicked opens a selection of units of measure. And to…
-
3
votes1
answer399
viewsSet variable on jQuery selector
I saw some posts on the subject, but it did not help. the problem is this: CSS: .spanClass{ display: none; } HTML: <input type="text" name="nome" id="nome"> <span…