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
votes0
answers27
viewsAlert Modal in cumulative line
I have a form on my system and a part of that form has a cumulative line. Ex.: you click on a button it adds one more input for you to type. My doubt is as follows, if the user does not type…
-
2
votes2
answers1089
viewsFilter with Jquery, Json and Input
I have a list of inputs with type checkbox, with values that are loaded from a JSON file. I wanted to know how to make a filter, so that when clicking on a certain checkbox, the products (which are…
-
2
votes1
answer44
viewsError Browsing a Json
Good afternoon, you guys, I have a question about json, i have the following json : { "jsonrpc":"2.0", "result":{ "nr":26, "lista":[ { "codigo":"2", "nome":"Pratos Quentes" }, { "codigo":"3",…
-
2
votes1
answer130
viewsRearranging product lists with Javascript?
I wanted to know how to change a product list. I have the products in a Json, and would like to implement a function to reorganize the products by Mais recente, Maior ou Menor preço. JSON…
-
2
votes1
answer51
viewsRecover all checked checkboxes
I have this code that returns a list of the bank with a checkbox next to each, however when sending it via post only takes the last marked and not all: Example with vardump where I marked all:…
-
2
votes1
answer157
viewsMask with jQuery or HTML
The Mask I need is this: 0000000-00.0000.0.00.0000 As I type in the input it is filled from right to left preserving the right zeros until it reaches the character limit of this string. Examples:…
-
2
votes1
answer75
viewsSelect filter stopped working
Hello, Guys need a help, I have a select filter that until yesterday was working, someone moved and stopped working, as I do not understand much of jquery, I decided to ask here. Note: The jquery…
-
2
votes1
answer18344
viewsQuestion: $.ajax() or $.get or $.post()?
Hello! In my project, the user makes a registration by inserting user, e-mail, link 1(http) and link 2(http). I save this data in a database. On the login.php page, I check if the e-mail and…
-
2
votes2
answers161
viewsDon’t events work with dynamic video?
I am using a page where content is dynamically loaded with ajax, the problem is that some events mainly video are not working as they should, for example: Man functions.js loaded when entering the…
-
2
votes2
answers1143
viewsCreate Javascript mask using jQuery
I have a customer registration page in my MVC project requesting standard data such as name, Cpf, dt nasc... I need to create masks of these fields. After researches I reached the plugin offered by…
-
2
votes1
answer62
viewsdoubts with sortable jquery
I’m having doubts about using jQuery’s sortable. 1º I have to block so that the user never puts a tr on the th 2º Note that when dragging a place row the data is all stuck together, how to keep the…
-
2
votes2
answers51
viewshow to identify disable tag with jQuery
I have a input with class form_campos, need to make the jQuery identify when the input has the tag disabled and change the class to form_disabled .form_campos { height: 31px; width: 100%; color:…
-
2
votes2
answers108
viewsReplicate val() content in span
I found this code that works very well in inputs: <script> $(function() { $("[name='email']").keyup(function() { var email = $(this).val(); $("[name='login']").val(email); }); });…
-
2
votes1
answer968
viewsHow to make a "Read More" button in Javascript
Hello. I have this text: Lorem ipsum dolor sit Amet, consectetur adipiscing Elit. Praesent aliquam vitae Elit in lobortis. Morbi tincidunt enim Elit, condimentum accumsan dolor lacinia Elementum.…
-
2
votes0
answers456
viewsBrowse table by jQuery
I need to scroll through a table to know if an element already exists in the first column. Table: <table id="tabela-resultado" class="table table-bordered table-striped table-hover">…
-
2
votes2
answers2323
viewsDisable button after jQuery click
Well I’m having the following problem. jQuery identifies the tag data-link to recover the link and redirect the page. Soon after this the boot has to be disabled. The problem is that by clicking the…
-
2
votes2
answers81
viewsAre there "problems" using jQuery’s small?
For example, some parts of a site, I can not fully touch the HTML, put the platform blocks for "security" and does not let modify, so I use jQuery/Javascript to make the modification I need. Does…
-
2
votes1
answer371
viewsTable Filters with jQuery
I implemented a table filter with jQuery, as code below, but I would like to implement a record return counter, as I search. $(function(){ $(".input-search").keyup(function(){ //pega o css da tabela…
-
2
votes2
answers310
viewsCreate node in xml with jquery
Hello, guys, I have a problem: I’m trying to create a node in an xml with jquery and I can’t... I have an xml file which I get it with ajax: <?xml version="1.0" encoding="UTF-8"?>…
-
2
votes1
answer155
viewsHow to develop an Auto Text Expander with Javascript or jQuery?
I want to create multiple keywords to work as a shortcut to auto complete. "oi." daria "Olá Amigo" "ate." daria "Abraço e até mais" For example, I type in a textarea of my website the word "test."…
-
2
votes1
answer113
viewsOverflow on off canvas menu?
I’m making a menu off canvas, in fact it is always on the screen, and when I click the button, what moves is mine main, the problem is the overflow, when I open the menu it should not let me give…
-
2
votes1
answer155
viewsSelect Md-option with ng-click
I have a page listing some job openings. Below these vacancies I have a form and in this form there is an option field to select the vacancy of interest. If the user clicks on the position of…
-
2
votes2
answers5433
viewsHow to do a hide div when clicking out of it with jQuery?
Hello. How do I get this div to be hidden when I click out of it: I need her gone when I click out of her. Follow a similar example: $("body").on("click", function() {…
-
2
votes1
answer2388
viewsHow to download file via $.ajax()
This doubt arose from this post Send data to an Actionresult from a Controller other than the current one answered by Tiago S, currently have this ActionResult that downloads file through a Post in…
-
2
votes2
answers178
viewsHow to make editable radiobutton?
Next, I will have to add radiobuttons dynamically, in that they will have to be able to write. They come as label ne? I needed to be able to edit this label, it could be a text too, the important…
-
2
votes3
answers2922
viewsDynamic table with addition of rows and columns
Is it possible to create a dynamic table with the addition of rows and columns? According to the picture, the situation is: - Starts a table with 3 columns and a row; - Whereas the first line and…
-
2
votes2
answers443
viewsHow to create Associative Array in javascript, json, how to manipulate?
It’s the first time I’ve dealt with this situation, so I don’t know exactly how to get around it. The fact is, I have a form with several inputs, divided by sections: In Experience Tab, I fill some…
-
2
votes0
answers348
viewsChanging Mysql with ajax and PHP
I created a system that the user can view data from a mysql database and eventually interact with that data (by changing through a select the column status in the database). There is currently a php…
-
2
votes1
answer189
viewsHow to interrupt the animation of a carousel
I’m having a problem at the carousel using jQuery: I can’t get him to stop transitioning the images by clicking a button. Follows the code: $('#slide img:eq(0)').addClass("ativo").show(); var text =…
-
2
votes4
answers456
viewsTake html from a created variable
I have a problem to concatenate variables that I have already created (I know .concat()) and all that. Problem: var input1 = $('input').attr({ type: 'hidden', value: 1 }); var input1_2 =…
-
2
votes1
answer544
viewsWould it be possible to identify if a DIV is over another DIV using some type of script?
I have a DIV A, which moves on screen by clicking on the keyboard keys. It would be possible to identify if this DIV A is on one DIV B using some script and trigger an event when being recognized…
-
2
votes2
answers1104
viewsValidate inputs in form with regular expressions
I have Contacts field on the page where the user must fill, for example, the name, it should only type letters, in the phone field, only numbers and email required the use of "@". The idea is to…
-
2
votes1
answer1265
viewsDelete dynamic table row via button in dialog box
As I delete a row from a dynamic table through a confirmation dialog box (modal)? So far I can delete only by directly using the delete button from the row itself in the table, but I wish there was…
-
2
votes1
answer323
viewsSubtract after removing a row from the Javascript table
I have a certain bug here. I have a function that calculate the quantity x unit price to give the total value and with that do the sub total. Like an e-commerce cart. $('.total').prop('readonly',…
-
2
votes2
answers318
viewsObject array in ajax with mvc
I have a function that takes the variables from a list, creates the objects, and inserts them into a list of objects. But I need to pass this list to the mvc controller; Jquery function $(function()…
-
2
votes2
answers249
viewsLeave autocomplete search in bold
I have this search script: $( function($) { $( "#p" ).autocomplete({ source: "php/search_palavras.php?id_cidade=<?php echo $id_cidade; ?>", minLength: 2, select: function( event, ui ) { // Set…
-
2
votes0
answers194
viewsHow sockets work in php
I’ve been needing to work with real-time updates lately, so I discovered the sockets, more specifically to use in php. I’m making a simple example based in those codes, the problem is that when…
-
2
votes0
answers44
viewsProblems with AJAX
I’m trying to delete a photo with ajax. I was able to collect the data (location of the photo) and now I was trying to receive that same location with another . php file . What is failing me is that…
-
2
votes1
answer164
viewsHow to echo PHP to Ajax? Login System
I’m working on a login system that warns the user if the username already exists in the database. I basically have a popup window on the same page where the input fields are for both login and user…
-
2
votes1
answer1155
viewsHow to make CRUD buttons on datatables?
I’m doing server-side activation and I want to know how to make some buttons from a basic CRUD, in the last row, like this: My code <script type="text/javascript" language="javascript"…
-
2
votes1
answer115
viewsWhy are you making this mistake again?
I’m using the plugin jQuery Datatable and started doing server-side activation but when charging it informs an Alert: Datatables Warning: table id=example - Invalid JSON Response. For more…
-
2
votes2
answers2745
viewsChange the site color by clicking the contrast button
I’m using a website developed in Bootstrap and it will have accessibility. I was able to increase and decrease the font, but I’m not able to create the contrast, IE, by clicking the button Contrast,…
-
2
votes0
answers2276
viewsWhat causes invalid JSON error?
I’ve done what was said in this post: json_encode - Invalid JSON and it hasn’t been resolved yet, so I’m asking. I’m using the jquery datatables server side. I made the activation server side with…
-
2
votes1
answer280
viewsSelect element, ignoring specific class
Come on... Suppose I have something like the list below. <div id="respostas"> <div class="historico"> <div class="lista"> <div…
-
2
votes1
answer24
viewsValues are going empty in Jquery
I have a form, from which I’m trying to get the values this way, but it’s not working. Where I’m going wrong? Jquery <script type="text/javascript"> $(document).ready(function(){ data =…
jqueryasked 7 years, 4 months ago user24136 -
2
votes0
answers385
viewsIs there a JSF style PHP famework?
I am a Java programmer and I use JSF in the projects of the company where I work. I am developing a personal project and I chose the PHP language even to learn a little more. The problem is that I…
-
2
votes3
answers1120
viewsEnable Submit button if CPF is valid
I used that tip link here. But I’m trying to implement something else I need and I can’t. Next: I need to test if Cpf is valid and if it is, release the sign-up button. For this I test Cpf with the…
-
2
votes1
answer2443
viewsHow to change the color of the rows of a table according to the value of each one
I’m having trouble developing a Function that changes the color of a <tr> based on a specific value of a <td> I need this Function to do for each line, because they contain different…
-
2
votes2
answers526
viewsHow do I print jquery results in a div?
My codigo js is working perfectly however I wanted to printase the result inside a div in the index.html itself below my textarea and without redirecting to another page, because it is redirecting…
-
2
votes2
answers1721
viewsHow to use jQuery to dynamically add text field in the form
I have a form where the client needs to inform the number of ports of the patch panel, and according to the value he fill this field, appear more new fields dynamically to add other relevant…