Questions tagged as 'javascript'

2
answers

Highlight selected row of table

I have a table where I select a Checkbox to enable a particular input. I would like that when I select this same checkbox, the entire row of the table would be highlighted, showing that the user selected that row. var cbs = document.getE...
asked by 19.02.2015 / 17:50
1
answer

Doubt modifying HTML tags with AngularJS

Someone could tell me how I can change an html tag with angular, like I would add a ng-model tag and from that I could change tag properties like class, id, text, etc ...     
asked by 28.01.2015 / 02:35
1
answer

How to update an iframe without refreshing the page?

I'm doing a system, more precisely, an HTML HTML and CSS editor, in which I need to send two fields via POST to a php page, which will process the data and save it to a random-named html file, generated at each page refresh. So far...
asked by 21.01.2015 / 13:12
1
answer

How to create a graph where the values presented in it will be in the DB

I have a table in my DB that records a progression of users. This table is made up of the ID / ID_USER / NOTA / DATA fields. Every midnight these values are recalculated. Assuming then that on 09/02/2015 the user had a grade of 380...
asked by 11.02.2015 / 01:05
1
answer

Javascript alert is not working

Hello, I have a registration form where the password must be repeated, and all fields must be filled out, otherwise the user will remain on the page to register. However, Javascript is not working! Not even the window appears on the screen ... I...
asked by 05.12.2014 / 18:52
1
answer

Function is not running when page loads [closed]

The JavaScript code below should display an alert window with the phrase "Hello World!" when the page index.html was loaded, but this does not happen ... Page content loads, but the function does not execute. var main = function () { 'use st...
asked by 23.12.2014 / 01:18
3
answers

Remove an event handler after 3 clicks

I have this code, which I need the click event to be removed after x attempts. Example: link var qtdadeCliques = 0; var eventCon = function(evento){ qtdadeCliques++; if (qtdadeCliques >= 3) { alert("You clicked the di...
asked by 13.01.2015 / 12:48
1
answer

How do I insert an item before and outside another item?

How to insert an item via Jquery so that it stays BEFORE and OUT of another specific item (I accept edits to improve the way you ask). The following example inserts before, but within the add-mesa-de-luz-button item. $("#add-mesa...
asked by 16.10.2018 / 16:54
3
answers

Adding data from the array

I have an array that the data comes from the user's filled form and I make a map: dados.map(element=> { var x var number1 = parseInt(element.preco), number2 = parseInt(element.peso) var tota = number1 * number2...
asked by 19.10.2018 / 15:54
2
answers

Load city select after state select

I have this HTML, and I would like that when the user selects the state, it loads the data of the city of the selected state: <label asp-for="Cidade" class="col-md-1 control-label" style="text-align:left;"></label>...
asked by 04.12.2018 / 16:19