Questions tagged as 'html'

4
answers

How to create a custom context menu?

When we right click on certain areas of the page the default PopUp of browsers appears: I'd like to showcase my own custom PopUps ! Is it possible to intercept the click and open a different menu?    Note: I have JavaScript p...
asked by 10.02.2016 / 16:37
2
answers

How to disable button when input file is empty / selected?

So, I have a simple image upload form that I leave button disabled. I wanted to, when I select a photo or file in the input file, the enable button! <div id="botoes" class="clearfix"> <button id="btnEnvia" name="btnEnvia" class="s...
asked by 29.12.2016 / 20:22
1
answer

What are the differences between properties and attributes in HTML?

When attempting to use this code: $(document).ready(function(){ $("#selectAllBoxes").on("click", function(){ if(this.checked){ $('.checkBoxes').each(function(){ $(this).attr("checked", true); }...
asked by 27.05.2017 / 05:58
3
answers

How to customize input file? [duplicate]

I need to customize a file-type input, but all the examples I've found seem to be tricky and do not work with multiple, rs It needs to look like this: Is there a way to do it with CSS?     
asked by 09.11.2015 / 17:56
1
answer

"keep connected" / "remind me" option in login screens

I'm implementing a login screen and my client asked to add a "Keep Connected" checkbox below the login credentials. Ok, adding is easy. But what is the correct behavior for this functionality? Is there any default behavior for these cas...
asked by 06.09.2015 / 06:15
1
answer

Adding a circle around an image in CSS

I need to make a circle around a div with photo, but my image is not centering on the expected circle, having this result: Itriedtodothis: #avatar { margin: 0 auto; background-image: url('http://i.stack.imgur.com/Dj7eP.jpg'...
asked by 06.12.2018 / 13:52
4
answers

Swap text by clicking on it to show / hide an element

I have the following example made in JavaScript, of which is a text written "See more", that by clicking on it you are enabled to see more text: JSFiddle Example Code <head> <title> Javascript demo - expand/collapse t...
asked by 20.02.2014 / 11:18
2
answers

Style an input type = 'number' to change the arrows

How to customize input type='number' as the following image? Clickingon+/-addsorsubtractsthenumberinsidethebox.Currentlymycodeis:.bedrooms=f.input:bedrooms,:label=>false,as:"number", placeholder: 'Quantos quartos?', min: 0 which...
asked by 12.10.2018 / 22:48
2
answers

How to find CSS images and styles that are not used on a website?

When developing large-scale sites or retaking projects of other people where there are hundreds or thousands of CSS style lines, it can become complicated to review and pass the code clean to remove unnecessary images and styles from classes...
asked by 17.05.2015 / 08:14
1
answer

Is there any risk of submitting form with HTML?

When I put the text: Em 19 de maio de 2015 16:48, <asdfsadf> escreveu: and sending the form I was given the following error:    A potentially dangerous Request.Form value was detected from the   client (ctl00 $ ContentPlaceHold...
asked by 27.05.2015 / 15:13