Questions tagged as 'html'

1
answer

Adding and removing classes with javascript

I wanted to know how to add and remove a class in html elements with javascript <div> <ul> <li class="Active">1</li> <li>2</li> <li>3</li> <li>4</li> </ul> </div>...
asked by 10.08.2016 / 03:47
1
answer

Move links to menu list when media size changes

I'm having a hard time putting some links inside another link. For example: #menu_header_right{ float:right; } .dropdown{ width:80px; position: relative; display: inline-block;} .dropdown-content { display: none;...
asked by 18.08.2016 / 18:18
1
answer

Controlling scroll to walk through sections of the site [closed]

I have a website with sections .. I'm trying to make the scroll jump to the next section and so on .. Thank you in advance!     
asked by 25.10.2016 / 23:32
1
answer

Tab system with jQuery

Galera I mounted a system of tabs using jQuery. Follow it below. $('ul.tabs li').click(function(){ var tab_id = $(this).attr('data-tab'); $('ul.tabs li').removeClass('current'); $('.tab-content').removeClass('current');...
asked by 06.08.2016 / 19:12
1
answer

pick input value and redirect page after submit

How can I get the value of an input and after the "submit" redirect to another page with this value in the url? Ex: site.com/busca/ BUY VALUE <form> <input type="text"/> <input type="submit" value="Pesquisar"/> </f...
asked by 06.08.2016 / 05:28
1
answer

Show user name responsible for such non html ID

I'm not sure what to do, but I'm not sure what to do. When creating a new topic, this topic creates an ID or each topic has yours.  In the Index there is a list of topics created and an access button that leads to a certain topic. My question is...
asked by 06.08.2016 / 04:44
1
answer

Problem with line break JS

The problem is this, when breaking the line in textarea in div .result where it is supposed to appear the result of what is typed in textarea , it only gives a space and does not break the line. How do I break the line w...
asked by 06.08.2016 / 06:03
1
answer

Change js variable value when clicking button and click again to return to initial value

I have the js code $size = 50; And I want you to click this button <label for="post-1" class="read-more-trigger" onclick="$size = 500"></label> it changes the value to 500. My only difficulty is to make when clicking the bu...
asked by 19.09.2016 / 21:14
1
answer

make automatic line wrap with bank data

Hello, I have a ul with li's that are given product names. It turns out that when I change the resolution to mobile, for example 320px , then if the product name is large, then it will not fit within the li that will have the...
asked by 17.10.2016 / 17:32
1
answer

links are leaving space

I was modifying my fixed bar on my site, and something occurred to me that I can not fix: I have 1 nav that inside has 1 ul that inside has 4 li if inside every li has a , what happens is that I'm leaving the fo...
asked by 14.07.2016 / 02:10