Questions tagged as 'jquery'

2
answers

Insert Value in Input Value with JS

I'm trying to bring a value that when clicking a button brings an input it works but the value does not appear inside the Value of the input so I can not capture this value via PHP. > Follow the code link Button <a href="#my_m...
asked by 12.07.2016 / 14:43
1
answer

Position scroll - JQUery - JS

Hello, I'm having trouble making a script in which I have the following structure Where the header and footer are fixed and main has a scroll with the content. I would like to know how to get the position of the main scroll? Th...
asked by 10.07.2016 / 21:54
2
answers

autocomplete works only with jQuery 1.2.6

Well I'm using an autocomplete plugin with 2 input, where I put the value in 1 input and the 2nd is filled in. The problem is that my system works with jQuery 1.7.2 because I have several functions with it. And this auto complete only works with...
asked by 18.03.2016 / 14:38
2
answers

How to change the color of the link when it is on the link page accessed

I see a lot of websites that when someone opens the "ABOUT" page, a CSS that only stylizes that link is activated. I believe it's with JS, and that involves URL comparison, but in practice I have no idea. Suddenly it appears to be a duplicate...
asked by 21.03.2016 / 15:54
1
answer

How to set a menu with jQuery?

I'm a beginner and would like to know the error of this code: var nav = $('.topo'); $(window).scroll(function () { if ($(this).scrollTop() > 136) { nav.addClass("fixar"); } else { nav.removeClass("fixar"); } });...
asked by 21.03.2016 / 23:48
1
answer

auto complete jQuery with 2 input

I have the following autocomplete that works on the 1st input, when it completes it fills the 2nd input. The problem is that if you delete the <p> tag it does not work. Can anyone tell me why? Follow the code: $().read...
asked by 18.03.2016 / 12:06
3
answers

Jquery calculate average and insert the result in the mean field that is disable

Good afternoon, I needed to calculate the average of the values entered in the 4 text boxes, and only to see the result of the average in the average text box after all are filled HTML <div class="form-group">...
asked by 16.12.2015 / 16:27
2
answers

How to set maxDate in datepicker for seven days after the selected date?

When a date is selected, the user should be able to select another date within a period of one week after the date that he selected. Here's the code I'm using: $(".datepicker_reservas").datepicker({ minDate: 0, numberOfMonths: [1,4]...
asked by 09.03.2016 / 19:36
3
answers

Modal jQuery or Bootstrap that receives email and name, automatically displayed when loading page

I tried the following code but it is not working <script type="text/javascript"> $(document).ready(function() { $('#myModal').modal('show'); }); </script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3....
asked by 05.07.2016 / 16:56
1
answer

Hide and Show DIV based on SELECT response

I have the following code and I would like that when selecting any value inside the select "#cities" show the ".DadosLoja" div and that it is hidden at first, already taking advantage of the question there is something else that I am not getting...
asked by 16.03.2016 / 13:02