Questions tagged as 'javascript'

3
answers

Horizontal scrollbar table

I've set up a table with CSS, but I'm having a problem when reports are opened on a phone or tablet. The table is flattened, or data is confusing. Can you put a scrollbar horizontally, and prevent the data from flattening? Follow the table...
asked by 13.02.2017 / 17:14
1
answer

Alert on only certain browser

Is it possible only with JavaScript and HTML to display a alert only and only when the user is browsing Internet Explorer? For example when you browse Google Chrome alert does not appear, but when you browse Internet Explorer  ...
asked by 03.07.2017 / 16:21
1
answer

JS: function error not defined (when calling a function inside another)

I'm having the following error: "Myfunction is not defined" With the structure below: var myobject = object.extend({ init: function () { minhafuncao(); }, minhafuncao: function() { console.log("oi"); } });     
asked by 29.06.2017 / 16:18
5
answers

Format numeric sequence in CPF format with separators using javascript

The function below tests the input of a cpf, (typing or pasting ) whose format must be ###.###.###-## If the input consists only of numbers without the separators, or missing some tab, such as ###.######## how can I make the...
asked by 08.07.2017 / 20:15
3
answers

Enable submit button if CPF is valid

I used the hint of this link here >. But I'm trying to implement something more that I need and can not do. Next: I need to test if cpf is valid and if it is, I release the register button. For this I test the cpf with the button register d...
asked by 06.07.2017 / 14:57
2
answers

Get 2 "arrays" in one line?

For example, how do you get the 2 in a single line? Example: document.getElementsByClassName("teste")[0].removeAttribute("disabled"); I want to get 0 and 1 You can get the 2 together, or I'll have to create two lines lik...
asked by 11.07.2017 / 17:00
2
answers

How to add another day using "new Date ()" [duplicate]

Hello, I have this function, but I do not know how I put one more date on the date, someone can help me. var myVar = setTimeout(function(){ myTimer() }); function myTimer() { var d = new Date(); var options = {weekday: 'long', month...
asked by 30.06.2017 / 16:27
2
answers

What is the error in this regular expression?

What is the error of this regular expression. I already tested it with another function and the mask works. But this one for numbers with cents, does not work. What is the error? <html> <body> <script> function mascara...
asked by 20.10.2015 / 16:24
1
answer

Move uppercase to lowercase

I have a richfaces datatable component that returns a record from the database and this record comes in all capital letters. Example: PAULO FERNANDES DA SILVA . Would there be something I could do to edit this name with CSS to Pau...
asked by 27.10.2016 / 03:45
3
answers

View Data in Div Jumping Row

I need to display the result of the loop FOR in a DIV , jumping line, how can I do? Example 1 2 3 4 5 My Code: for(i = 0; i <= keyCliente; i++){ document.getElementById("divExibir").innerHTML = i; }     
asked by 22.10.2016 / 01:27