Questions tagged as 'html'

2
answers

How can I use mouseover to change the background color of a div?

Hello, I would like to change the background color of a div when you place the cursor on it, how do I do that? Div in question [HTML]: <div class='container2'> <div class="MP"> <img class='iconDetails' s...
asked by 21.06.2018 / 00:09
2
answers

Insert date event into a table if page width is less than certain value

What I want to do is that when the width of the page is less than the value shown below it will enter data-tablesaw-mode="stack in the site shown below! I'm new to JavaScript but I need this for a project! Thanks to anyone w...
asked by 22.06.2018 / 11:50
1
answer

Duplicate element in DOM with JS

I need to add <li> via JavaScript, but when added, from the second addition, it starts to duplicate, triple, and so on, I need to add only 1 element per click. var btn = document.querySelector("#btn"); var ps = document.query...
asked by 22.06.2018 / 16:41
1
answer

How to make a multilingual website?

I've already been researching the subject on this site and in others, and this question seemed to me the most complete: #, my question is: do you need to do with the language arrays, ... or can I simply duplicate the page, for example: index. ht...
asked by 25.06.2018 / 12:33
4
answers

.append () an img tag?

I would like to insert a tag using append but whenever I try, it tries to insert an image into the div that I want to insert only the text, is there any way I can do it? <input type="file" multiple id="file-input" /> <script src="http...
asked by 12.09.2017 / 22:21
1
answer

How to verify without inside a #id has a .class?

It has a top #header that adds the class .hide-bar when scrolling but when returning to the top, that class disappears. How to check with jQuery if class is present in this id or not? I need this check to disapp...
asked by 13.12.2014 / 14:42
2
answers

input value with 'find' does not work

I have a list that dynamically incremented with the append of jquery, the list goes something like this: $("#questoes").append( '<li class="questao" data-id="'+questao+'">'+ '<div class="row testes">'+...
asked by 12.11.2017 / 00:34
3
answers

Function js run at a certain time

Sirs, I have a question, is there any method that for example executes at a certain time? I would like when it was 0h the page would update automatically, so I would save some cookie to inform that day has already been updated ..     
asked by 06.07.2017 / 13:21
1
answer

Traverse all rows of a table Html and hide if any column 5 is empty

I do not have advanced jquery knowledge and I need to go through all the rows of a html table and hide the entire Line if the column from 5 JUS) is empty and refresh the sequence numbering of the first Id column, eg: I want to hide the...
asked by 17.06.2017 / 15:33
2
answers

Get TD value when clicking table

I have a table HTML horizontal, where I want to get the value of TD (time) when clicking on the line. Here's an image to try to illustrate better. Byclickingonthe07:00hourlineforexample,openamodaltoregistertheeventatthetimeyouc...
asked by 10.07.2017 / 01:35