Questions tagged as 'jquery'

1
answer

How do I know if an element has the html or value property?

I have two elements that need to be updated a DIV and another INPUT One has to be updated value and another the html, example ... $.each(json, function (index, value) { if (typeof $("#" + index).val() !== "undefined") {...
asked by 23.05.2018 / 01:44
2
answers

My function is not running on page load

I'm having the following problem sirs. I have the following function function sortTable() { arr = JSON.parse(localStorage.context_data); $('#tableLemos th').click(function () { console.log("funcao carregada...") var id =...
asked by 15.09.2018 / 05:16
2
answers

Calculate total of each row in the table

I'm trying to use JavaScript to dynamically calculate my prices multiplied by the quantities and result in the total for each row, but it calculates the grand total and plays in the last field of the Total column. Like the picture below:...
asked by 26.04.2018 / 19:41
1
answer

My preload is not working and I tried in several ways and I can not help myself

This is the code that is trying to preload only that the fadeOut effect is not working when I put Jquery, I already checked that it is pulling the file, it just does not execute the fadeOut to appear the page, I am very grateful for the help . I...
asked by 26.04.2018 / 00:40
2
answers

Count how many empty fields are in the form with Jquery

I have the following fields coming from the database: <?php while($peListar = mysqli_fetch_object($sqlListar){ ..... $listar .= "<td style='".$fundo."'><input type='text' name='ValorI[]' class='md-form-control' value=''&...
asked by 30.04.2018 / 15:14
1
answer

Add up 02 fields from the BD Mysql fields

How do I, if the user types the values in 02 fields, the result of that sum automatically appears in the EndType [] field? These fields are coming from the database. while($peListar = mysqli_fetch_object($sqlListar){ ..... $listar .= "...
asked by 29.04.2018 / 23:29
2
answers

Error in modal call with bootstrap 4 and jquery with id="#"

So guys, I created a modal like this: <div class="modal fade" id="#siteModal" tabindex="-1" role="dialog"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div cla...
asked by 03.06.2018 / 05:44
1
answer

send attr value for $ .ajax

I have a link a , which if clicked, leads to a scrpt ajax delete ID . With código down I can not get the id on page from php // JavaScript Document $(document).ready(function(e) { $("a.bloqDesbloq").click(fu...
asked by 01.06.2018 / 20:27
1
answer

get the html of a $ ('a'). index (this);

A simpler example of what I want would be the following: $(document).ready(function(){ $('a.excluir').click(function(){ var i = $('a').index(this); alert(i); }); }); <script type="text/javascript" src="http...
asked by 02.06.2018 / 20:17
2
answers

How to add Divs from a past number of Select?

Could you help me with a problem I'm having? Good people need to create a select with values from 1 to N numbers, after the user select a number in the select has to create n divs from the selected value. Follow the example not working ......
asked by 01.06.2018 / 15:48