Questions tagged as 'jquery'

5
answers

Getting html class with PHP variable in javascript

I'm trying to get the value of a select from jquery from the class, but this class has part of the value as a php variable. Currently my code looks like this: echo ' <select name="contarecebvenda" class="selects2'.$linha[cod].'" id="...
asked by 23.02.2018 / 17:06
1
answer

Error accessing JSON with Ajax jquery

I'm getting a JSON that I created with PHP as described below, but when I try to access the properties of that JSON it always returns me undefined . I made these test files there to demonstrate how I'm doing. If I give a console....
asked by 22.02.2018 / 21:04
2
answers

Check Negative Balance

Via JavaScript or Jquery, I need to check if there is any negative balance. If you have a negative balance, then: var BALANCE_DISPONIVEL = 0 if no: var BALANCE_DISPONIVEL = 1 Below is the html source: <html> <head> &...
asked by 23.02.2018 / 14:04
1
answer

Change element capture in cars

I have the following carousel done in bootstrap                                                                                                                                                                                     ...
asked by 12.03.2018 / 15:40
1
answer

AppendTo is not a function / Shopping cart using jQuery [closed]

Hello I'm doing my first online store project but I'm missing out on completing some tasks that I do not know at this point how to solve. Below is what I need to do: How to show the cart (which will be hidden) when the first item is inser...
asked by 13.03.2018 / 13:51
2
answers

Multiplying values from a PivotTable

I have a pivot table with quantity columns of a product and unit value, where I need to multiply the unit value by the quantity (qtd X val_unitario) and at the end to show the total sum of the multiplications (according to the image) $...
asked by 02.03.2018 / 21:37
1
answer

How to Make a Rule in the JavaScript According to the DIV [closed]

Good evening, personal. I want a rule made through javascrit / Jquery to do the following: If the input with ID = 'A' is (IN) of the div with ID = 'B' do something ... That is, I want to know when a element is inside a certain div I can do a...
asked by 01.02.2018 / 00:39
1
answer

Get html array value with JavaScript

In the code below I get the values stored in several <textarea> with the use of the each function. But I would like to do the same in a similar way, using a for . Can I get these values by scanning with for , h...
asked by 31.01.2018 / 19:22
1
answer

Do POST search by clicking the div

I'm adapting the following script: $(document).ready(function(){ $('#getUser').on('click',function(){ var user_id = $('#user_id').val(); $.ajax({ type:'POST', url:'php/getData.php',...
asked by 31.01.2018 / 20:49
1
answer

PHP code inside of JQuery, is it possible? [duplicate]

I have an application and in it I use JQuery and the function that I'm having problems is the following: When the user clicks the + button, it calls JQuery that reads HTML and PHP content and executes on a line below to insert a new...
asked by 30.01.2018 / 17:06