Questions tagged as 'html'

2
answers

Button that scrolls the page up without reaching the top

I have a code that scrolls the page to the top, but I do not want it to reach scrollTop = 0. It is possible that by clicking the button, it just slightly raises the page up, as if I had the keyboard above the keyboard? $(document).ready(fu...
asked by 04.10.2018 / 18:07
1
answer

Foreach jquery concatenate in table

I have an AJAX that in success brings a response : $(response).each(function(i) { alert(response[i]); $('#tbody').html( "<tr>" + "<td>" + response[i].id + "</td>" + "<td>" + respo...
asked by 31.10.2018 / 14:41
2
answers

problem in leaving a text on the left and 2 items on the right

.col-item { border: 1px solid #E1E1E1; border-radius: 5px; background: #000; } .col-item .photo img { margin: 0 auto; width: 100%; } .col-item .info { padding: 10px; border-radius: 0 0 5px 5px;...
asked by 02.10.2018 / 16:43
2
answers

Can you declare a JavaScript variable so that it always has 2 decimal places?

The idea is not to have to convert the result to two decimal places at all times. Example: var preco = 10.00 To show these decimal places, I have to put it like this: $("#preco").html("R$ " + preco.toFixed(2)); And then if I do any cal...
asked by 07.11.2018 / 22:34
2
answers

Input limiting file type

My form has an input file field, and I would like to limit the file type to selecting only images and pdf. <form> <input type='file' required> <input type='submit' name='Enviar'> </form> I'm handling the file type in...
asked by 09.04.2018 / 00:54
2
answers

How to remove an entire div in Jquery and then add it back?

How can I remove an entire div using .empty() or .remove() and then add it back to any function?     
asked by 03.04.2018 / 04:54
2
answers

How do I put the "enjoy" and "share" button for each blog post?

I've added a Like and share button to the posts footer from my Blog, so that the reader has the option to choose Like or not, only that post . But clicking on Like, I noticed that the button did not share the post , but rather the bl...
asked by 06.02.2016 / 00:18
2
answers

Are files not used in the site loaded?

Let's say I have several files on my site ftp, such as images I'm not using in the site, obsolete images, or files I want to save in that domain. When I access this site, are these files, especially images, loaded while my site loads?     
asked by 18.01.2016 / 19:41
2
answers

CNPJ query using PHP

The situation is as follows, I have a script in PHP that does CNPJ queries through the IRS website, however it is returning some errors, I really do not know if they are errors . HTML / PHP code consulta.html <html>...
asked by 06.04.2016 / 13:48
1
answer

How to change CSS style of table column when mouseover?

How to change the CSS style (backgrounc-color) of an entire column when hovering, using CSS only ? The table in question is as follows: <table class="un table"> <caption>Título da tabela</caption> <thead>...
asked by 13.06.2016 / 21:49