Questions tagged as 'html'

1
answer

How can I get the Index of an Element with JavaScript?

How can I get the index of an element when I click on it? <p>Parrafo 1</p> <p>Parrafo 2</p> <p>Parrafo 3</p> <p>Parrafo 4</p> <p>Parrafo 5</p> var p = document.querySelectorAll('p');...
asked by 27.02.2018 / 18:47
2
answers

Link javascript in two html files

I'm starting to see javascript and I have two html pages with javascript content. In one I have a method and in another I have to show the result of that function. I tried calling it in the header and just before calling the method, but it does...
asked by 16.02.2018 / 16:58
1
answer

Problems with Click and Keydown function

My problem is that it only works if I click on the button and if I put the keydown then it's time to do a tab on the button and hit enter. I want it to work by clicking the send button and giving enter in the field as the chats. some idea of how...
asked by 11.02.2018 / 20:23
1
answer

How to give my style to the footer, with an image ...?

Hello, I am trying to give the style to my footer, of the image that I show giving the sensation of realism, as if the grass grew upwards. I thought that it would give impression of movement like a git, I do not know if that will be possible, wi...
asked by 09.02.2018 / 20:11
2
answers

Table nested in html

I am trying to make a card format in HTML for which I am nesting tables. The problem is that one table is being mounted on another. What mistake am I making? <!DOCTYPE html> <html lang="es"> <head>...
asked by 09.03.2017 / 04:13
2
answers

How can I validate that an INPUT TEXT accepts only 1 word and numbers?

I am in need of a code to validate that in an input I only accept one word "item" + numbers, that is, I only accept those filters, and be able to send an alert to a user that enters that input. example: item123     
asked by 26.03.2018 / 23:19
1
answer

How to send a different email for a different form in laravel?

I need to send an email for one form and another email for another form ie I have two forms in the same view, The first form is called user has the following fields: name mail subject comment When the user sends the message, an e-m...
asked by 11.06.2018 / 00:51
2
answers

Capture pointer movement in Google Maps

Good, I have this code that I must implement in a form ... What I need to do with it is that the user can mark the location of his home to later save it in the database ... My problem is that no I can capture when the pointer / click on the map...
asked by 01.02.2018 / 21:15
1
answer

How to return the user to the main page if they are not logged in or close the session

I need to know how to get the user returned to login.php if he does not have the session started. This is my code: login.php <?php // Include config file require ('connection.php'); if (isset($_POST['usuario']) and isset($_POST['contras...
asked by 27.01.2018 / 03:24
2
answers

Problem with selectable datatable rows

Good morning. I have a problem when it comes to obtaining the value of the selected rows of a datatable. I need to be able to select all the rows that I want (this is already working for me) and by pressing a button that shows me the value of...
asked by 15.01.2018 / 10:40