Questions tagged as 'jquery'

3
answers

Assign dynamic value to a variable in Jquery

I searched a lot and could not find the answer. I need to assign a value to a variable in Jquery, I do not have much knowledge. What I need is: When you click on a link: <a href="?sts=Pendente" title="Avisos Pendentes" id="Pendente" d...
asked by 13.04.2016 / 01:38
1
answer

How to create relationship between different data to perform an action?

This statement returns me the state acronym: SC $("#billing\:city").val(dados.uf); I have a select so I can not change: <select id="billing:region_id" name="billing[region_id]"> <option value="">Por favor, selecione o e...
asked by 12.04.2016 / 16:27
1
answer

Focus on the last line of div with scroll

I have a% div of% with attribute chat-history . Through jQuery I insert information into the database and then refresh to display in the overflow-y:scroll div. I need to update the div via Ajax request, it will focus on the last lin...
asked by 12.04.2016 / 07:57
3
answers

Reuse function on same page with Jquery (beginner) Change event?

What is the possibility of reusing $ .change? People have a problem. I need on the same page to use Multiple changes in multiple selects. It works like this: First change: User chooses to select 1 The change runs and a get json search v...
asked by 06.04.2016 / 16:40
1
answer

Jquery test table [closed]

When clicking on line 1 on any button it returns me the value just below the article, if I click on the same line on a different button it replaces the value, if I click on line 2 it returns the value and puts it just below the other value?...
asked by 30.04.2016 / 17:32
2
answers

Separate json response for tags

Personal I have the following ajax call: $(".sec-tags").html(res.data.tags); It is returning the call from the server, however the call is coming as follows: tags: "coelho,teste,gato" Everything is coming within a single string separat...
asked by 15.07.2016 / 22:32
1
answer

Remove values from the graph bars

I need to get the bar numbers of the graph I'm using, but so far I have not figured out which option I'm going to do. I'm using Highcharts . Follow the image ]Followthecode:Highcharts.Chart({chart:{type:'column',renderTo:"grafico_invest...
asked by 16.07.2016 / 22:05
1
answer

Why can not I get ajax request data? (json)

I have the following code: script.js: function maisDetalhes(id){ $.ajax({ url:'paginaDados.php', type:'GET', data:'id='+id, dataType:'json', success:function(data){ alert(data.id_event); } }); and pageDados.php: foreach ($Dados as...
asked by 17.09.2016 / 01:12
1
answer

Validate zip code and fill in fields automatically jquery validate

How can I validate a ZIP code and fill in a field, for example city, using jquery validate? For example: the field (input) that the user would fill the city would be disabled and the value of the same would be taken by a validation of the CEP...
asked by 21.09.2016 / 18:51
1
answer

Disable native browser validation

I would like to know how to disable native browser validation on a form? I would like to just leave my validation in JQuery. What I wanted to remove is this "Fill in this field." text box. Any suggestions? I tried to use novalidate but it...
asked by 16.05.2016 / 04:25