Questions tagged as 'html'

5
answers

Change onclick function

Personal I have a question. I have a button: <button type="button" class="btn btn-success btn-xs" onclick="vincularContato($(this))"><span class="glyphicon glyphicon-ok"></span></button> And two functions, one lin...
asked by 14.08.2017 / 21:59
3
answers

Text alignment vertically [duplicate]

I'm trying to align text to the center of the screen, I tried to use transform:translateY(-50%) with top:50% in position:absolute , but it did not work, I'd like to know how to sort it, and if possible, some functional exam...
asked by 09.01.2017 / 13:37
4
answers

& # 65279 - This error appears between the body, and gives space difference [duplicate]

How do I remove this error? It is causing space in the header of the site.     
asked by 16.10.2015 / 00:27
3
answers

Get array size with EQ () - Jquery

I have a html that has five elements div . I would like some help to get a get of the size of this array in Jquery. Ex: With the function eq() , you get an element of the page, referenced by array. If I use the following...
asked by 11.04.2014 / 19:07
3
answers

Do I need to insert an HTML tag with jQuery to encapsulate the code below?

How to insert an HTML element after opening and before tag closing with jQuery? This within a each : $("#main_div").append('<div class="Ftitulo">'+item.titulo+'</div>') $("#main_div").append('<div class="Fdescricao">...
asked by 04.08.2014 / 22:40
4
answers

Feed variable within variable

In JS I have the following line: var recebeMensagem = ''; var mensagemBot = '<div class="bot_mensagens">'+recebeMensagem+'</div>'; // 1ª mensagem recebeMensagem = 'Olá'; $('.recebe_as_mensagens').append(mensagemBot); But when I...
asked by 08.10.2018 / 21:57
4
answers

How to select a value comparison option?

I need to make "selected='selected'" in option whose value is what is written to the state variable retrieved in Ajax. How can I do this? $('#cep').on("change", function(){ $.ajax({ url: 'http://cep.republicavirtual...
asked by 20.10.2016 / 13:37
3
answers

What does it mean! - // - in javascript?

I ran into an issue where a tag <script> was displayed and contained these HTML comment characters. Function example <html> <head> <script type="text/javascript"> <!-- function Alert(){ a...
asked by 21.06.2016 / 15:16
2
answers

Toggle colors in table with PHP [duplicate]

I have a code that displays a table in the% list of registered%, and to embellish, the code causes it to display 1 in 1 by alternating the colors between white and gray. COR -> White COR -> Gray COR -> White COR -> Gray ... How ca...
asked by 29.07.2015 / 19:14
3
answers

Create select using cycle "for"

I tested it in many ways, and I can not create a <select/> with a for in PHP. The question is simple, I have a for ranging from 1 to 48 , and I need to return those 48 numbers to a select ....
asked by 14.04.2015 / 16:14