Questions tagged as 'javascript'

2
answers

Values from one form to another

No index.html will have a pre-form with name, email, city and UF. I will need to get this data and play to another form that will be in another html file. I have a certain notion in jQuery, but I wonder if I'm going to have to use a...
asked by 27.03.2017 / 21:05
1
answer

How to duplicate display of HTML elements

I have 5 images, 3 of them have the same class being displayed in div A. <div id='A'> <img src="https://sites.google.com/site/mplayerplugin/thumbnails/09.jpg"class="figura" /> <img src="https://sites.google...
asked by 25.03.2017 / 11:48
1
answer

Javascript onclick / addEventListener without anonymous function

I have a problem with the onclick / addEventListener of javascript, I have already tried it in several different ways and none has resulted, I wanted my click event to be equal to a function already declared and not equal to an anonymous functio...
asked by 17.03.2017 / 03:39
1
answer

Do not allow retroactive date in Date field

The field of type date can not allow retroactive dates. I need the script to recognize the current date and not allow earlier dates. <div class="col-sm-4"> <label for="ultimoDiaTrab" class="control-label">Último dia a ser traba...
asked by 14.03.2017 / 15:22
1
answer

How to become responsive

I have this project more advanced, but I left it smooth to be able to facilitate the visualization and for you to help me = D, I tried everything possible using the media queries but nothing, I want the window to fit on any screen and the bigger...
asked by 15.03.2017 / 20:17
2
answers

Display Image before saving to bank

I'm trying to show an image, before saving it in the bank, in an image field. The following is an attachment that I'm using: <script type="text/javascript"> function mostraImagem() { var imagem = document.getEleme...
asked by 10.05.2017 / 17:35
1
answer

Problem when requesting with ajax in Laravel 5.4

I'm learning the web language for creating my website and using the Laravel framework 5.4, and having trouble sending forms with ajax. Every form I send, returns me the error:    Unprocessable Entity {"account": ["The account field is requ...
asked by 09.03.2017 / 17:04
1
answer

Problem with Javascript Method Return

const data_ = () => { let array = [] fs.createReadStream('./files/treinamento.csv') .pipe(csv()) .on('data', (data) => { array.push(data) }) .on('end', () => { console.log(a...
asked by 20.05.2017 / 21:51
3
answers

How to add multiple elements within the jQuery html () function?

I have the following excerpt: $('#div').html(); I need to add some div within this div , but I do not know how, because if I try to do this it gives error: NOTEM THE ADDITIONAL SIGN FOR THE CONCATENATION $('#div').html($...
asked by 31.05.2017 / 00:30
1
answer

Column-specific selection in an HTML table in JS

Hello! I'm an IT student and I'm learning about Rails. I have the following HTML table of a view: <p id="notice"><%= notice %></p> <h1>Produtos</h1> <table class="table table-hover custom" id="tabelaProduto"&...
asked by 29.05.2017 / 21:21