Questions tagged as 'html'

3
answers

Sending data to the same form is a good method?

I have a login form which, after given submit it is sent to itself with the information via POST , and if it is wrong, it displays an error message and shows the same form again. I did this to avoid creating type pages: login.php...
asked by 28.02.2014 / 19:18
3
answers

How to make a DIV with crossed text. Type a text passing through a DIV

Is there any way to make a text transpose a div , type entering from one side and leaving the other? My idea would be something like these images. Where text starts from one side and traverses on the inside of div . Is there any...
asked by 14.09.2018 / 20:56
2
answers

How to load default image if src="" can not find?

Is there any way to load a default image using only HTML , if the first src="" can not find the file? <img src="ola_mundo.png" alt="Olá Mundo"> // Existe algum atributo para isso?     
asked by 22.11.2016 / 14:14
3
answers

Difference between validation and mask

I'm doing form validations. As for the validation, everything happens fine, but how to format the fields according to the data entered? Example: In a date field, bars are added automatically, in a phone field, parentheses and dashes are added...
asked by 19.12.2016 / 17:08
2
answers

Remove more than one item from an array

You can remove more than one item from an array at a time. Follow the code: var teste = [6,4,5]; //meu objectivo é remover os itens 4, 5 por ex //removendo o item 4 teste.splice(1, 1) //removendo o item 5 teste.splice(1, 2) As you can...
asked by 12.02.2015 / 18:50
5
answers

Know number of checkboxes selected

How many checkboxes are being selected and make a count. He selected 1, scored 1, selected another +1 mark, took 1 mark -1. I would like to do a count.     
asked by 30.06.2014 / 19:55
5
answers

Ignore CSS in certain section of the page

Let's say I have some CSS of the type: #foo input { background-color: black; color: white; /* seguem mais um milhão de propriedades */ text-align: center; z-index: 9000; } All% with% child of input will have all t...
asked by 02.05.2014 / 23:55
5
answers

Line with image in the middle

I wanted to stylize a hr that would support an image in the middle. Type:    ------ image ------ I thought about making the image already with a line ready in Photoshop, but this makes it difficult to be responsive. Is it possib...
asked by 10.08.2015 / 15:12
2
answers

How to remove tags in a text in Python?

In PHP we have a function called strip_tags that removes HTML tags from a given text. Example: $text = "meu nome é <strong>Wallace</strong>"; strip_tags($text); // 'meu nome é Wallace' How can I remove Python text tag...
asked by 23.03.2017 / 17:30
2
answers

Set OPTION as SELECTED based on database values

I am preparing a form where I am setting the values of the fields with the data of the database. I'm having trouble setting the option chosen as selected to <select/> in the code below: PHP <!-- ATENCAO --> &l...
asked by 17.06.2014 / 18:17