Questions tagged as 'javascript'

2
answers

How do I delete all Cookies from a page with JavaScript?

Is there a way to exclude all (already existing) cookies related to a page using just JavaScript?     
asked by 17.10.2014 / 04:28
2
answers

Execute JavaScript function in the click event of a button inside a table

Hello, I have a table and in each row of this table I have a button, when I click that button I need to execute a function but I can not do that because I do not think I'm using the correct selectors. p> Table: <table id="tbl" class="tabl...
asked by 28.08.2014 / 17:01
2
answers

How to get tomorrow's date with JavaScript?

Hello. I have this code: var datas = new Date(); console.log(datas.toLocaleDateString()); He returns me: 05/22/2017 Home Can you make him come back with an extra day? so: 05/23/2017     
asked by 23.05.2017 / 00:15
4
answers

Validate form before sending

I have an HTML page with an e-mail submission form. I need to check on the same page whether the fields were filled out or not at the time the user clicks the Submit button. Apparently it is bypassing the javascript function and it is sending th...
asked by 17.07.2017 / 18:56
2
answers

Is there a function that fills a string up to a certain length?

I would like to populate a string until it reaches a certain length. Is there a function that can do this? It would look something like PadLeft(Int32,Char) and <     
asked by 19.07.2017 / 16:48
2
answers

Catching last div from a div

Considering this structure: <div id="PAI"> <div uniqid="1" class="filho">A</div> <div uniqid="2" class="filho">A</div> <div uniqid="3" class="filho">A</div> <div uniqid="4" class="filho">...
asked by 04.06.2015 / 01:18
2
answers

How to copy a canvas to an image

I've been struggling to resolve this issue, which seems simple, but I'm not getting it, Maybe I'm not knowing how to ask the question , so I count on goodwill from friends: 1. I have the following canvas: -> var placeholder = doc...
asked by 05.09.2016 / 10:39
2
answers

HTML 'required' attribute by Javascript

I'd like to know how to do that, when activeBtn was checked, ordenadorBanners got the required attribute, I tried the template below but it did not work, I'd like to know how to do it, and the " why "having to do it that way. va...
asked by 01.08.2016 / 15:52
2
answers

How to assign HTML code to a JavaScript variable?

I have the following HTML code: <table class="al-center" style="width: 520px;"> <tr> <td> <div class='form-group'> <label class='control-label'...
asked by 30.06.2016 / 14:44
2
answers

How to separate data from arrays into rows?

I would like to ask you another help: I have a two-dimensional array, and I wanted to separate it in lines in a column, for example: Time 1 Jogador 1 Jogador 2 ... Time 2 Jogador 7 Jogador 8 ... I came up with the following code: var...
asked by 27.09.2018 / 02:48