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
votes2
answers1495
viewsTake the values of all select options with jQuery
I have this <select> which is generated dynamically <select id="select_exemplo"> <option id="exemplo"> <option id="exemplo" value="10">teste 1 </option> <option…
-
0
votes1
answer104
viewsHow to reload an Angularjs Directive in the Controller?
Personal greetings, I am developing an app with login and I am using Angularjs, but I have a cruel doubt when logging in the user. It turns out that I am using the user menu via Directive, when the…
-
0
votes0
answers55
viewsHow to differentiate select’s dynamically created by Javascript?
I wonder if it is possible to identify elements created via Javascript, so that I can distinguish when reading this generated array. Specifically, I have the option to generate elements select and…
-
0
votes1
answer57
viewsInput text value does not come with outerHTML
I need to store an HTML code in the database. I can generate this HTML and display it in a modal the way I want it to. But when I go to save him in the bank, I have to run the remote: var $texto =…
-
0
votes1
answer475
viewsreceive json_encode ( (array) $objj) in jquery
I got the following return of PHP for JSON through AJAX: [ "ok", [ [ { "\u0000CelulasReunioes\u0000idCelula":"17", "\u0000CelulasReunioes\u0000data":"2019-01-30",…
-
0
votes1
answer91
viewsPass array by Ajax and receive in PHP script
I need to pass a Array for Ajax to read it in a script PHP. Javascript code: $.ajax({ type: "POST", url: "vendas_funcoes.php", data: arrayItens, success: function(msg){ console.log("ok"); } }); I’ve…
-
0
votes0
answers18
viewsFunction . Blur() does not run with dynamically added element
I have a select that when selecting the option Brazil he adds a input for ZIP CODE and when selecting France he adds a input for ZIP. With the value of these inputs I will query the API as an…
-
0
votes1
answer78
viewsPut radio input disable
Table within the While to create the table with inputs radio dynamic: $y = 0; while($rows_cursos = mysqli_fetch_array($resultado_cursos)) { $tabela1 .= '<tr>'; $tabela1 .= '<td>…
-
0
votes1
answer36
viewsHow to make a scraping changing page
I need to create a bot that enters the home page of a particular site, take all the link’s of the posts, enter a, capture a div that contains the video and move on to the next link captured on the…
-
0
votes1
answer82
viewsHow to use jquery filter with an array?
I’m creating a filter for a gallery, where only the images that match the selected tags are displayed. I found several examples for gallery with single tag. In my case, an image can contain several…
-
0
votes1
answer116
viewsCheck which items in json have a certain value
Hello, how to check which items have value equal to 0 (stock 0), json and loaded by ajax. $.each(JSON.parse(response), function (i, deliveryTypes) { for (var i in deliveryTypes) {…
-
0
votes1
answer1004
viewsRedirect Com Jquery
I’m making a system that makes a requisition ajax with Xios. So far td well, I was able to make the request GET and list all items on the screen in a table. In this table there is a button View…
-
0
votes1
answer48
viewsWhy is jquery returning repeating information?
I’m using the command $("div").delegate( ".btnAcessoAtividade", "click", function() { var id = $(this).attr('id'); window.localStorage.setItem("id",id); console.log( $(this) );…
-
0
votes0
answers42
viewsset value by function Success ajax jquery
In the Success function I am not able to set a value of a div with the content of the date variable $(document).on("click", ".js-busca-previsao-chegada", function(event) { event.preventDefault();…
-
0
votes1
answer80
viewsDatatables Jquery
I can list the data, but I can’t filter the data, my query is right, returns the json, but I get a processing message. I’m using the slim for the routes. my call: <script>…
-
0
votes1
answer43
viewsHow to use a cont variable p/ create an array of Names in input’s?
I have a button where I can add fields to my form, and I need each new field to have a different name, I thought of using name = "products[]", and so create an array and use a foreach on the back,…
-
0
votes3
answers72
viewsAdd class and remove
Problem I want to get him to add the attribute active in suite-internal-item and remove the ones you have, but it’s not working. jQuery $('.suite-internal-link').on('click',function(e){…
jqueryasked 6 years, 2 months ago Geniton Lima 79 -
0
votes1
answer105
viewsAutocomplete not working - Asp . net MVC
Good morning guys, I’m having trouble implementing a field with autocomplete in an Asp . Net MVC application. The problem is this, using an Ajax I can go to my controller and search for results of…
-
0
votes2
answers865
viewsStop running a javascript function, inside jQuery each?
I need to interrupt the execution of .each when an option is not met, I am using return false;, but the code after the block each is still running. Follow the example of the code: function…
-
0
votes1
answer1027
viewsMask accepting letters and numbers
I wear a mask Jquery thus, but fills only numbers: $("#FormaCalculosVencimentos").mask("000,000,000"); The need arose to type letters and numbers only in the first item, of each comma, would look…
-
0
votes1
answer72
viewsFloat field conversion problems
I have a problem that at first, is silly, but I am not able to solve, I have this function in ajax, that takes the values of input, and sends it to the controler: var url =…
-
0
votes2
answers99
viewsSelect Textarea Text with Variables on Click
In the case below: Select textarea text by clicking If I want an example1 variable, example2, exampleN. As I declare in jQuery? I can’t do it like this... $(document).on('click',…
-
0
votes1
answer48
viewsError while performing data deletion
When I click the remove button I remove all my line with this code, but when creating a new user it is not being heard by .click() inserePlacar = () => { let corpoTabela =…
-
0
votes1
answer38
viewsDynamic divs with local dataStorage - Jquery
I am trying to create a "table" with Divs with dynamically retrieved data from localStorage. I can recover the data and create the elements, but not in the desired way. The data is being duplicated…
-
0
votes1
answer742
viewsHow to create a list from data saved in Storage location
I have a task where I need to create a registry for users, save in the Log location and then in a list show on the site all registered users. I was able to save the user data, but I’m having…
-
0
votes2
answers31
viewsProblems with Variables in JS
I have some inputs that should be self-paced. Here’s how it works: I fill out the input Barcode 1 and JS automatically populates Product Description 1 and Unit Value 1. The problem I’m having is…
-
0
votes2
answers150
viewsFunction in jQuery Ajax does not return Value
I am making a conversion from Brazilian Currency (Real) to Chinese Currency (Yuan). I am using the website API: https://free.currencyconverterapi.com . When debugging in the browser, I can see that…
-
0
votes1
answer137
viewsHow to disable button and enable only after selecting combos
I have a button (Transfer) and I would like when the user enters the screen it is disabled and only after the selection of combos (Combo1 and Combo2) the button is enabled. I’m working with JSF.…
-
0
votes3
answers1001
viewsTake an input value without Submit
I need to keep the value one input radio to concatenate into a href later, but before making the Submit. My form code: <form action="recuperarsenha.php" method="POST"…
-
0
votes0
answers38
viewsBrowser Back button does not work to vote for DIV
I have the code below. When I’m at Home and click on the Menu to appear, for example, Projects and then press the back button of the browser, it doesn’t work. The url even changes, but the page does…
-
0
votes1
answer76
viewsI added inputs dynamically, but the original is deleted
I created a button to add more fields to my form, but when I click on the "-"(remove) button it not only deletes the additional fields, it should be, but also the original field. Does anyone know…
-
0
votes1
answer119
viewsSweetalert with load - check if it was executed (php - jquery - ajax - sweetalert)
I want that after loading the PHP file reportas_excel.php close the swal, until this part is working. The Problem is that when you finish loading it does not generate the file…
-
0
votes1
answer454
viewsLaravel keeps missing the session
Hello I have a system developed in Laravel 5.6 that keeps missing the session When I log in: private $prefix = ''; public function __construct(){ $this->prefix = env('APP_NAME')."_"; }…
-
0
votes1
answer358
viewssweetalert inputs
good afternoon, I have a swal with several inputs in the html tag and need to apply a validation that does not let pass empty fields already tried everything jquery validate etc and nothing. goes…
-
0
votes1
answer40
viewsAjax is not returning json in the html table
I’m trying to make a table where its contents come from an http. I am using Ajax and Json to pull the content but does not return anything on the screen other than what is written in HTML. I’m still…
-
0
votes2
answers143
viewsRun function after object created by click
Below is what I managed to do: When I click on a button with the class .btn-comprar-na-pagina, it fires function below. $(function () { var itens = []; $(document).on("click",…
-
0
votes1
answer26
viewsYou are not accepting special characters via javascript
I created a file _Scriptspartial and inside that file is javascript code. Follows file _Layout: <!DOCTYPE html> <html> <head> <partial name="_Favicons" /> <meta…
-
0
votes1
answer115
viewsJavascript to display Divs randomly (With text or images)
I am developing a page and need to display some text and images randomly on a certain part of the page. I found it here on the forum (Display text at random) a code that almost does what I need.…
-
0
votes1
answer108
viewsCheck if input value contains specific word, using jQuery
I’m creating a function to take the youtube link written in an input and take the image of this video. To get the image just use the link below, changing the video id (value v=) by youtube link:…
jqueryasked 6 years, 2 months ago Leandro Marzullo 1,401 -
0
votes1
answer84
viewsInput Hidden receive $.ajax array
I have a $.ajax who receives from PHP json_encode( array ($html, $relatoriosGr) ); That one Return of $.ajax, will popular a input Hidden with the index 1 of result: success: function (result) {…
-
0
votes0
answers99
viewsLoad checkbox marked and calculate them
I have an imputs field, with values. I made the page add like this: HELP I NEED: On the edit page, when loading the page, list the checkbox options marked. $(".c").on('change', function() { var…
-
0
votes1
answer98
viewsDeliver PHP array from ajax to HTML field
Well, I’m wearing it $.ajax to recover a json_encode() in an archive PHP. In that file is populous one form: $html .= " <input type='hidden' id='dados' value='" . $relatoriosGr . "' />…
-
0
votes1
answer505
viewsConvert sum of minutes to hours format (eg 70min = 01:10) with jquery
I have the following script that takes the hours and minutes of each day of the week, where the variables that start with m are the minutes of each day of the week (coming from a select) and those…
-
0
votes3
answers195
viewsCarousel slide.bs.Carousel event does not work
$('#carousel').on('slide.bs.carousel', function () { alert("SLIDE"); }) <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"> <script…
-
0
votes0
answers43
viewsError making a request to an external API
I am trying to make a request to an external API but in the console appears the following error: Code in Jquery: $("#Compilar").click(function () { var codigo = $("#CodigoText").val(); var clientId…
-
0
votes1
answer88
viewsHow to select an option from an input select with the value of $_GET with Jquery
The page receives a value for $_GET and would like to auto select the value of a select input equal to the value of $_GET received using Jquery: <?php $valor = $_GET['valor']; // valor1 ?>…
-
0
votes1
answer53
viewsFunction to display last seen (current date)- Jquery
Hello, Through the function below, I intend to display the last seen. However, it is showing the last month, instead of showing the current month. For example, I am sending the current date but is…
-
0
votes1
answer70
viewsCheckbox in the Console
I created a form with some registration information as a task in my internship job. This information must be printed in the Console, the problem is in 3 checkbox boxes that I cannot display the…
-
0
votes1
answer311
viewsData Passing from an SQL Query to an HTML Table
I am developing a code and the section related to displaying the data that is in SQL for HTML Table are not working. In this case I created a function in my DAO with the SQL query and passed to a…
-
0
votes1
answer44
viewsProblem sending multiple data to Controller
I have this dynamic table <form action="{{route ('AddDocumentosAbertura')}}" method="post" accept-charset="UTF-8" enctype="multipart/form-data"> {{ csrf_field() }} <table > <thead>…