Questions tagged as 'html'

2
answers

Switch menu color on page scroll

How do I change the color of a menu when scrolling the page? I'm doing this $(function() { $(window).on("scroll", function() { if($(window).scrollTop() > 100) { $(".sidebar-wrapper").addClass("teste2"); } else { $("...
asked by 21.10.2015 / 13:58
2
answers

Leave manageable site text

I developed a one-page layout which the client requested that a part of the site be manageable, something that was not in the project at first. It is a simple line between <p> and </p> What's the easiest way to do...
asked by 27.10.2014 / 23:10
3
answers

Calculating in Table Fields with JS

I have a table with two fields: "Product Value" and "Sales Price". Another field to define a calculation for the "selling price". The function only works for the first row of the table. I would like to know how to make the calculation to be appl...
asked by 10.06.2016 / 01:17
3
answers

Get data on page by javascript and convert it to integer

This with a problem, when I get a number inside a span by javascript I try to convert it to int with parseInt, but nothing. For if I try to make a sum with another number it ends up concatenated. and if I convert with parseInt it will appear 'NA...
asked by 08.10.2015 / 17:34
2
answers

Fill Second Input automatically when filling the First

I have a input that I'll give the name of input-1 , and there I'll insert this: 12:00 When I have a second input that I am going to give the name of input-2 , it is possible to insert in input-1 : 12:...
asked by 23.04.2015 / 01:10
3
answers

Display inline does not work

I would like to leave my section equal to this page here note that right below the% with% to 3 circular objects with title and text and when you resize the screen one goes below the other I am wanting to do something like this, instead...
asked by 26.06.2015 / 21:36
2
answers

Hide Div after x seconds after performing action

Good morning, people, I have in my home a field to consult CPF. The field has only a text field, where I inform the CPF, if I find any cpf in the database, it returns some data to me. I submit the form with ajax, not to reload the page, in th...
asked by 12.06.2015 / 14:49
1
answer

How do I rotate an image with jquery?

Well it's the following I have the following code: <head> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script></head><imgsrc="roda.png"></img> <button>Rodar!</...
asked by 23.07.2017 / 12:28
2
answers

Clear input when user starts typing

Good afternoon, maybe this answer or this question already exists. But I did not find it here or google the way I need it. I found several scripts to delete the field of an html form when the user clicks on a particular input, however, what I ne...
asked by 08.09.2015 / 17:53
5
answers

Make div disappear

I have a code that only works if I keep a <div id="panel"> , but I do not want it to appear on the screen. Can you keep this div, but leave it invisible?     
asked by 12.08.2015 / 15:54