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
votes1
answer146
viewsAjax request with data from another Ajax
I have an Ajax. that seeks information from receitaws this ajax brings the address and tbm the zip code. And I have another Ajax, who relays address information, through the zip code, one in…
-
0
votes2
answers61
viewsCatch value in Javascript/Jquery loop
How can I print the value of each alt in the for? <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div class="pai"> <div…
-
0
votes0
answers124
viewsHow to automatically update the attribute value of any HTML element using Javascript?
I need to keep the title of any element on the updated page. Whenever an element has the value of title being the character ?, I want to replace it with the value inside the tags of the same…
-
0
votes1
answer59
viewsHTML template in Java
I’m having a problem assigning a role to a input I have 2 HTML templates in Java var forgotPassword = ' <form action="#">'+ '<fieldset>'+ '<legend class="title"><span…
-
0
votes0
answers74
viewsError opening video via modal
I’m trying to open a video using modal but without success. I ask for help in this error and solution. I try to do this: When the mouse passes over the button, the JS, already puts the URL inside…
-
0
votes0
answers35
viewsTable stylization problem using Bootgrid()
When I rethink that table within a Modal and use the function BootGrid(), it cannot load all the necessary styles, making the navigation buttons for example not properly stylized. Code of the table…
-
0
votes1
answer199
viewshow to add an if inside a . append() in Jquery
Good afternoon dear, I have an append that creates a dynamic list, however I need to do an if when it selects an option in specific it activates the if condition that returns a modal, I don’t know…
-
0
votes1
answer92
viewsjquery.inputmask.Bundle.js duplicating the pressed characters
I’m using inputmask for the mask of CEP 99999-999 and after the object is cloned, there is the duplicity of character pressed. It usually occurs when it arrives at the separator (-). Ex. If I type a…
-
0
votes1
answer56
viewsRounded number
Speaks galeres to developing a control of funds at work, and when save a value it rounds. the real value is $ 678,74 and it rounds to 679 in the view. How can I solve this? 'moeda_id' =>…
-
0
votes1
answer1403
viewsRefresh without losing data, is it possible?
The code below allows the user to enter a comment that is returned by the ajax callback to the same page. There is a way via javascript or php that to upgrade the page the inserted comments are not…
-
0
votes1
answer46
viewsTR data-id coming Null Jquery
I am unable to capture the data-id of my TR. <script> function EditarContato() { var id = $(this).attr("data-id"); debugger; var url = '@Url.Action("EditarContato","ContatoG", new{area=…
-
0
votes2
answers69
viewsSumming Table Line Values
Good morning, you guys! I have a table that is populated with the data of an XML, and each row of the table has quantity, unit value, ipi and total input. Then I would like that when editing an…
-
0
votes1
answer439
viewsPassing view data to controller with Viewbag/ how to pass jquery script value to viewbag
I have the following excerpt <div class="form-group"> <div class="col-lg-6" style="margin-left:15px"> <div class="row"> <div id="Empreendimento" class="form-control">…
-
0
votes0
answers32
viewsError opening multiple calendars with Javascript!
Good afternoon guys, My question is that my table comes with comic information and connects in the view by an append, I added a calendar to them. append code: $("#table"+data[i].date+"").append(…
-
0
votes1
answer759
viewsonclick inside <a> tag does not work
I have a link inside an array in which I do a json_encode and send to an html table, and inside the tag I have a function inside the onclick that should be send an ajax request and do the…
-
0
votes0
answers102
viewsWorking with multiple javascript/jquery arrays
Speak person, basically I’m getting 2 array per function parameters and that both NOT have the same size, and I’m trying to render it in each specific select, for example: The 1st array comes an API…
-
0
votes0
answers42
viewsError clicking Header to order Datatable.js
I’m using the api Datatable.js and I’m going through the following problem: When I click on any coluna da table html to make the ordenação the entire content of the tag tbody remain only one line…
-
0
votes1
answer123
viewsMascara Doesn’t Work
my mask doesn’t work when I wear a variable. for example: Projeto.Aplicacao.ViewModel.Clientes.ClienteViewModel cliente = (Projeto.Aplicacao.ViewModel.Clientes.ClienteViewModel)(ViewBag.Clientes);…
-
0
votes1
answer63
viewsSave values in session to show the total sum dynamically
Good night. I have a problem which is as follows; I have a form which is generated by a foreach, where it shows ticket values. In this form you can add the amount you want to buy from multiple…
-
0
votes0
answers201
viewsValidate Cpf with ajax puchando from mysql
Guys I’m trying to validate a Cpf with ajax I look for Cpf in the bank to see if it already exists it gives an alert and does not submit the form if there is no it has to submit, but in my case it…
-
0
votes1
answer410
viewsRadio type input check with jQuery
Good evening guys, I’m having a hard time here and I can’t seem to fix it. I have a checkout page where I display two means of payment, billet and card, the options for the user to select whether…
-
0
votes0
answers224
viewsPopular selects with php, jquery and mysql
Good afternoon, colleagues I am with a doubt that for a long time I have been trying to solve and I can not get that is popular 4 selects using php, mysql, ajax and jquery. Searching for answers on…
-
0
votes1
answer35
viewsAdd second element to "click" javascript event
I have javascript code that loads data at the click of a button, I would like to know how to load this same information on another button, IE, I would like to add one more element to the excerpt:…
-
0
votes1
answer306
viewsTabs in modal bootstrap
I have a modal in bootstrap and would like to put tabs in this code, however, there is something wrong and the window shown is without the desired shape. Follows the code: <link rel="stylesheet"…
-
0
votes3
answers81
viewsHow to capture a typed value and use to define the value of a class attribute (css)
I’m a layman, so even to find something like this is hard for me. Here’s what I wanna do. Type a 2-digit number value in an input and automatically type the value in a bar. This bar is set to…
-
0
votes1
answer522
viewsHow to dropdown menu in Angular with Materialize CSS?
I was doing a small project with Angular (V8.2.5) and Materialize (materialize-css v1.0.0), and decided at a certain point to insert a dropdown menu into a header component. Following the…
-
0
votes2
answers44
viewsShow / Hide in a form when clicking an input radio
I made a code that for some reason is not working it should work as follows. When I click on input radio plegal entity it must open the form of legal person and when I click person must hide the…
-
0
votes1
answer1235
viewsInput Mask Razor
I’m in need of help to include a CPF and CNPJ mask with Jquery or Js, so that it changes automatically after I click on a select, but I’m not able to include the mask inside the Razor I made.…
-
0
votes4
answers174
viewsVerify correct answer
Good afternoon, I am making a form of simple questions and answers. I would like to know how to case the answer is to wrong, show the correct alternative in Alert. $(document).ready(function() {…
-
0
votes1
answer155
viewsCreate and populate elements with json return in jquery
Good night, you guys. I need to take a json return and mount an html with the data dynamically. I got to the part where I can get the json and nothing else, I’m stuck. $.ajax({ type: "get", url:…
-
0
votes0
answers32
viewsEncrypt data between Controller Asp.Net Mvc and Jquery Ajax
I communicate between Back and Front End with Ajax, but I don’t know how to encrypt the data transported, this is a method of my controller that returns a Json I call through the Ajax: [HttpGet]…
-
0
votes2
answers62
viewsHow to play this value for an input field?
I need to get the id of an item on my list and fill in the input with this id. So far with some searches I was able to choose which of the options and display the id in an Alert, but I need to fill…
-
0
votes2
answers41
viewsHow to make an AJAX call through the post
Hello I have a field on the site called search service, and would like to make an ajax call to redirect to another page. <li> <form class="navbar-form full-width"> <div…
-
0
votes1
answer46
viewsClick Section and open DIV
I want to click on Flap Change the class of the div that contains the attribute to show. It is originally with a class that makes it hidden.I have the js function there but it’s not working Who can…
-
0
votes1
answer131
viewsfile.width and file.height - Does not work in Dropzone.js
I am implemented the system of Dropzone.js in a system, however, I need to limit the size of the image. How I take this information to limit upload that is not within the standards?…
-
0
votes2
answers643
viewsChange value <td> dynamically with Javascript
Good afternoon Personal, I have the following radios in HTML <input class="form-check-input" type="radio" name="filtro_por" id="filtro_por" value="sinistro_datacadastro" > <label…
-
0
votes1
answer24
viewsWhat to do? Safari IOS does not display elements within jQuery UI generated dialog
Good morning. Introduction: I have a site in production using jQuery UI for a long time. Except for the problem I present, all dialogs show everything in Safari IOS. The problem: I developed a new…
-
0
votes1
answer162
viewsHow to change column text by javascript?
I made an effect using DRAG AND DROP that is nothing more than dragging a block to another trello-style column. Inside this block I would like to exchange a status text for when it leaves from TO-DO…
-
0
votes0
answers33
viewspaste clipboard content from a button
How to take the contents of the clipboard (Clipboard) and paste it into a text from the click of a button. I found an upcoming jquery code, but I can’t reproduce what I need. Below the code that…
jqueryasked 5 years, 6 months ago Vinicius Avanzi 47 -
0
votes1
answer73
viewsHelp to abort jQuery.ajax request, jQuery.post
I use a php page to monitor new entries in the database for 30s and so far everything works fine, the problem is that I can’t leave the main page immediately, because it is waiting for the reply of…
jqueryasked 5 years, 6 months ago MichellHenrique 89 -
0
votes1
answer76
viewsError when integrating template to Angular 7
Hello, I have a problem: I am integrating a template that works on jQuery, css3 and Html5. I added it to node_modules and referenced the scripts in angular.json. The template css is working…
-
0
votes1
answer77
viewsMask problem for input type="text"
I’m trying to get the input type="text" only accept numbers and keep the date format as I insert the numbers. //Exibir no formato de data function mascaraData( campo, e ) { var kC = (document.all) ?…
-
0
votes1
answer82
viewsVariable value in tabs inside a modal - Javascript
I would like to pass a value of a variable contained in javascript through tabs within a modal to all tabs. Below is an example of what I’m trying to do. $(function () { $(".btn-lg").click(function…
-
0
votes2
answers40
viewsHow to return a value from a checked column?
I’m trying to get the ID of the selected line with :checked but I’m not getting it. HTML <table id="dividas"> <thead class="thead-inverse"> <tr> <th>#</th>…
-
0
votes0
answers21
viewserror in ajax request
Dear friends, good morning! I have a mistake I can’t fix, log on: index.html:1 Access to XMLHttpRequest at 'http://meusite.com/testmail.php' from origin 'null' has been blocked by CORS policy: No…
-
0
votes1
answer1578
viewsHow to resolve CORB even by adding Access-Control-Allow-Origin
I added the instruction header('Access-Control-Allow-Origin: *'); in my php, but I keep seeing the error jquery.min.js:2 Cross-Origin Read Blocking (CORB) blocked cross-origin sponse…
-
0
votes1
answer75
viewsData-required validation in select
I have this code that it checks if there are any input with data-required which was not filled out, to inform the user. However I have 3 selects that are not being verified.…
-
0
votes0
answers135
viewsAdjust anchoring to another page with fixed menu
Hi. I have a site with menu set at the top. At the home, I have links that should anchor Id’s of internal site pages. As much as anchoring works, part of the content is behind the fixed menu, so I…
-
0
votes1
answer102
viewsHow to correctly check the status of a Checkbox in js?
I need a feature where Checkbox are nestling together. In this way, the parent element would select all children and so on. My logic was this: As I will receive this data externally, I can…
-
0
votes3
answers99
viewsMy code does not recognize the SCRIPT
I am creating an online wallet to learn and I have a problem, I wanted to format my INPUT with a Coin mask and from what I saw Jquery is a good option. I saw a tutorial (in this case:…