Questions tagged as 'javascript'

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
3
answers

How to use the output value

I would like to know how to use the value of an entry after I use the ok! button, since I need to use the value of the input that will serve as the radius, so I can do the calculation that will be printed inside the other two labels...
asked by 23.04.2018 / 21:25
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

Photo conversion to base64 with error 414 (Request-URI Too Long)

I have the below code that does the conversion from a photo to base string64 sends the base via AJAX to the controller , however when you switch to the ajax, I return the following error: Photo conversion is done without errors. Isthere...
asked by 25.04.2018 / 16:59
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
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
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
1
answer

JQGrid double click does not work on Mobile

I have a JqGrid that works perfectly in the browsers of the computer, however when I open the cell phone, the double click function stops working. $table.jqGrid({ url: '/Representantes/ConsultaEntrega/lista', datatype...
asked by 30.05.2018 / 18:45
1
answer

Create dynamic associative array inside loop

I'm having trouble trying to create a dynamic associative array inside a loop, the error returned in the console is Cannot read property 'push' of undefined , the idea is of a sports quiz with 3 questions for each team, I'm using the "d...
asked by 03.06.2018 / 07:22