Questions tagged as 'html'

1
answer

Alert in image

I have: <img onclick="exportToFile('WORD')" src="${resource(dir: 'images', file: 'word.png')}" /> <form id="reportForm" action="/test/report1"> ................ </form> <script> function exportToFile(type) { $( "...
asked by 28.04.2017 / 10:35
3
answers

Do not send Form by pressing submit button [duplicate]

Dear, I am making a normal form with name, rut and last name. I am sending the form with a button, but when the data is not validated the same form is sent. so my question is.    Is there a javaScript function that stops the button su...
asked by 25.05.2017 / 16:14
2
answers

How to concatenate results of a For in Javascript

I have the following code that brings me 3 answers in the following way in the Javascript console: "Prueba 1" "Prueba 2" "Prueba 3" But I need you to show it to me together and not in 3 lines separately. To show it to me in one line: "Pru...
asked by 07.12.2018 / 16:59
2
answers

focus on an input and color several elements

Hello, I'm doing a "login", with username and password and I would like to know how to do so that when I focus on an input, I change the background of two elements. I've tried like this but it does not work for me. .campos_login > div input...
asked by 11.12.2018 / 16:19
2
answers

How to change color input when changing its value in JAVASCRIPT

I have a function in javascript that counts characters and I would like to change the color of the input text when its value drops from, for example, the 1200 characters. This took me for the moment: function ocultarContador(){...
asked by 20.11.2018 / 15:00
3
answers

Bootstrap (col-md-6) Failed to align elements

I'm trying to make a blog for the first time in bootstrap, but I can not align the elements well Example: But the problem I have is that the text comes out like this: This is the code: <link href="https://stackpath.b...
asked by 27.12.2018 / 23:04
4
answers

how to send data post method of 2 forms in php?

How can I send data of 2 or more form of php to another page, I can do it with a single form that contains a table, but the design changes completely and I do not want that <div class="form-one"> <form>...
asked by 01.06.2016 / 15:28
1
answer

Leave a select without options

I have the following select where I select a type of wood and this has sub products of this, but sometimes the wood has no sub product so it hides the select of the byproduct. But when rescuing the data and sending it to the AJAX database...
asked by 15.11.2018 / 21:03
2
answers

export to excel with data table

Good, I have these links. <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"/> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/select/1.2.5/css/selec...
asked by 10.12.2018 / 21:16
3
answers

How to save data from a foreach in html in an array of Javascript

I'm with a project using laravel and when I get the controller data, in the view I use a foreach to recover the data sent, but I would also like each data sent to be stored in an array in Javascript to be able to operate with these. vi...
asked by 07.12.2018 / 06:31