Questions tagged as 'jquery'

1
answer

Get data-value value that is generated dynamically

I need to get the value of a data-attr that is generated from an ajax request. The maximum I got was: $('.dataImposto').on('click', '.ImpostodeRenda', function(){ $(".ImpostodeRenda").html("ooi"); }); The problem is that this "TaxTim...
asked by 19.10.2017 / 21:19
1
answer

Configure the index of the image that will receive the style

I have a group of imagens within a div : <div class="boxSlide"> <img src="_imgs/_slideShow/1.png" /> <img src="_imgs/_slideShow/2.png" /> <img src="_imgs/_slideShow/3.png" /> </div> I woul...
asked by 18.10.2017 / 17:09
3
answers

Jquery - Drop color in HTML element border

I want to do with JQUERY's prop () method, so that the border of a field element has a red color around it if it is empty or the information is incorrect, I'm working on a date function that compares if the the end date is less than the initial...
asked by 18.10.2017 / 21:40
2
answers

Append not working properly on a Select after AJAX request

I need to make when completing the AJAX request jquery insert the options into a select When you do this the options do not appear when you click, however the inspect shows that they are present in select Request script: $(docum...
asked by 15.01.2018 / 20:39
2
answers

String Comparison in jQuery

I'm having a question in comparing string using Javascript / jQuery. I want the city in input id="cidade" not to be Goiânia or Aparecida de Goiânia to display the alert . But even when the city is Goiânia...
asked by 29.11.2017 / 20:40
2
answers

Submit form when changing checkbox

Where am I going wrong on my form? When changing checkbox it needs to submit the form HTML <form id="form_onoff" name="form_onoff" action="onoff.php" method="post"> <input type="checkbox" value="on" id="slideThree" name="slideThree...
asked by 30.11.2017 / 17:19
1
answer

forEach in javascript for a return in json with error for a single record

I have a really annoying problem and I do not know why. Through an ajax request, I get the server notifications that the user has not yet viewed (similar to facebook) For this, I use the following code: $.ajax({ url: BASE_URL+"ajax/...
asked by 01.02.2018 / 21:43
2
answers

Get Radio and Text Values in Order

Good note. I have a problem in the logic of how to proceed between a set of questions and answers. I have the code below consisting of inputs with the types text and radio. I want to retrieve the information of these elements in the order the...
asked by 02.02.2018 / 01:00
1
answer

List results with jquery / php

I want to list results of a PHP page using jquery, which is updated every 3 seconds, but I can not. The code I'm using is: <div id="listar"></div> <script src="assets/js/jquery-3.1.1.min.js"></script> <scrip...
asked by 15.12.2017 / 13:08
2
answers

How to find the closest number with JAVASCRIPT

I have a input which receives a value entered by the user and an array with 12 values .. I'm traversing the array with a ForEach .. since I need to find the approximate value of the value typed in input .. I have the following code...
asked by 02.10.2017 / 02:30