Questions tagged as 'html'

1
answer

Using val () in script causes me to lose line breaks

I have a problem. I'm implementing a chat page using the following script: <script> $(document).ready(function(){ $("#enviar").click(function(){ var mensagem = $("#campodetexto").val();...
asked by 17.11.2014 / 19:01
3
answers

Doubt about input attributes in HTML

Hello everyone. I am doing a Tabuada using HTML and PHP. The user types a number through the form and displays the number of the number. I wonder if I can put some attribute in <input type="number>" so that only positive numbers are...
asked by 01.03.2017 / 20:28
3
answers

Define multiple "ids" in an HTML tag [duplicate]

HTML allows you to define several class in a single loop. Curiously, I tried to do the same, trying to define several id in a tag : <div id="id1 id2 id3">Tester plusieurs id</div> I...
asked by 25.04.2017 / 14:28
2
answers

Get HTML from multiple DIVs with the same ID

I would like to know how to get content from a WEB page where I have several DIVs with the same IDs. One looks like the other, div 1 , it's like a Title, already the Div 2 as if it were the content ... But the problem that div...
asked by 09.04.2015 / 04:24
3
answers

Disable all DropDownList Option's except whichever is selected

How to disable all options of a combo minus the value selected using JQuery. As in the image below: FollowtheHTMLintheimage:HTML<!DOCTYPEhtml><html><body><select><optiondisabledvalue="volvo">Volvo</o...
asked by 27.02.2015 / 19:32
5
answers

How to insert HTML with JavaScript?

What is the simplest way to insert HTML into an element using Javascript?     
asked by 16.06.2015 / 15:00
3
answers

Execute php function with onclick

I want to know how to execute a php function with the onclick event on a a element, for example: <a href="">Teste onclick</a> And the function: function testeOnclick() { echo 'Bem vindo ao SOpt'; }     
asked by 28.05.2015 / 19:45
3
answers

Align titles in html

I have this image where I want to align all the titles surrounded in red to the same level: Code:echo'<div><tableborder="1"><th colspan="2">Infância</th><th colspan="3">Sénior</th><tr><td>'; echo...
asked by 03.05.2018 / 13:38
1
answer

Diffference of lang and meta charset in html

Hello, I'm doubtful about the difference between the <meta lang="pt-br"> and <meta charset="utf-8"> settings. Thanks for the help     
asked by 20.02.2018 / 15:35
3
answers

How to align div next to two rows?

I want to leave the last image centered in the middle of the two rows but I do not know how to do it I used a margin-top: 15%; I went to the center as I want to but the second row came down and was not close to the first one and starting...
asked by 15.01.2018 / 19:41