Questions tagged as 'jquery'

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
0
answers

How does Ajax pagination work? [closed]

I'm using script to do pagination through Ajax , which works assíncrona , the situation made me curious, because until then I had only used php+mysql , never php+mysql+ajax . If my bank has 30 registros a...
asked by 31.12.2015 / 00:46
2
answers

How to paint a cell according to the value of a select?

I'm needing help formatting a <td> according to the result of select PHP. I thought about using jQuery but I do not know much about it. <tr class=""> <td class=""><?php echo ($row['Id_acordo']); ?><...
asked by 16.12.2015 / 14:58
3
answers

Validate Select jqueryValidate with Materializecss

I found a problem that I can not solve for a while, I'm working with the framework MaterializeCSS . It has validation with some direct notations in the HTML tag, what I'm not getting is validating is when I have a select tag. Follow t...
asked by 26.11.2015 / 00:24
4
answers

How to open a div by clicking on a link to?

   I'm creating an element for a personal site, and would like this element " <div> " to be opened / closed when a button is clicked. It is a <div> containing some country flags to change the language. I think you...
asked by 21.12.2014 / 02:30
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
2
answers

jQuery execution bug

I have a very strange problem, I had never encountered it. ... function resizeResponsivo() { var width = window.innerWidth, height = window.innerHeight; if ( width < 651 && keys[0]) { keys[0] = false;...
asked by 11.11.2016 / 14:10
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