Questions tagged as 'jquery'

1
answer

Hide all contents other than selected

I created a javascript code that hides all the different divs from the value that was selected in select . $(".filter-target").change(function() { var target = $(this).val(); if (target == 0) { $('[data-target]').removeClass('h...
asked by 30.08.2016 / 16:59
0
answers

I can not control the focus of the form and the validation of the fields

I am in the following situation, I have three forms, which are displayed through the click event of the buttons associated with them, I disable the buttons and try to validate the fields of each form, before they are shown, has an image that dis...
asked by 03.08.2016 / 21:16
1
answer

Map destination from address or zip code using Google Maps API

Does anyone know how to make a map like this link Where does the person type the address or zip code, and does it trace the route to the intended destination? I searched the internet but did not find it     
asked by 03.08.2016 / 07:37
0
answers

How do I trigger a validation of angular-input-masks?

I have a field: <input type="text" name="DataNascimento" class="form-control data" ng-model="EscolherCurso.DataNascimento" required ui-date-mask/> I preferred to use jquery's datepicker. But when jQuery fills in the value, the ang...
asked by 05.08.2016 / 14:33
0
answers

Select2 options appear when selecting a

I am using Select2 to load data remotely and it is bringing the results normally, however when selecting one of the options returned all exist and I could not identify why, it follows the code: Javascript $('.js-data-example-ajax').select...
asked by 02.09.2016 / 14:22
1
answer

How to indent text in a jQuery autocomplete?

I'm using the jQuery autocomplete and I would like to underline the text being searched within the result, I looked for some examples on the web, but I only found the plugin, like this: Example I tried to bring the formatted text of p...
asked by 02.08.2016 / 18:47
2
answers

Not being able to call the same variable out of function

I'm not able to call my variable pt1 out of function(data) and within function getImageItem . Being function(data) is within function getImageItem . function getImageItem() { var item = ""; jQuery.ajax(...
asked by 07.01.2016 / 16:41
1
answer

Json does not load in TypeHead lib

Beauty? I have a Json whose structure is as follows: [{"id":1,"nome":"teste"},{"id":2,"nome":"teste"},{"id":3,"nome":"teste3"}] I want to use it in this type head code but however it does not load ... In the browser console it shows that it...
asked by 28.07.2016 / 03:42
1
answer

Hide buttons and Enable Other with ajax

I have a page and it shows a modal with 2 buttons, one of confirmation and another of canceling, according to the code Below: Within this modal I have a DIV <div class="resp"></div> This div I get a response from a page in...
asked by 23.08.2016 / 04:07
0
answers

Menu Hover Jquery

Share a simple question, how can I fix this hover so I can click the link button? I always have problems with submenus, if anyone can help. $(function(){ $('.menu-toltip').hover(function(){ $(this).find('a').first().addClass('hover');...
asked by 29.07.2016 / 14:03