Questions tagged as 'jquery'

2
answers

Pass array to Modal

I have the following array $detalhes : Array ( [0] => Array ( [dt_detalhes] => 2016-03-09 [desc_detalhes] => Viabilidade [tp_processo] => Viabilidade [vl_protocolo] => 1234 ) [1] => Array ( [dt_detalhes] =>...
asked by 09.03.2016 / 17:49
1
answer

Calling ajax with Jquery every X seconds

I'm trying to make a call Ajax once the page loads and one every 2 minutes. The 1st and 2nd works but do not have 3rd call and so on. <script type="text/javascript"> function CarregarJSON() {...
asked by 19.04.2016 / 19:51
2
answers

Input type file as read-only

I'm trying to set a read-only input file type when clicking the submit, but the form below did not work. Any suggestions? <script> $(document).ready(function() { $("#salvar").on('click', function() { $('#arquivo').prop('readon...
asked by 03.05.2016 / 20:08
1
answer

JQuery Bootstrap closed.bs.alert

I'm not able to run the event code "closed.bs.alert". That is, execute a code after the total removal of a snippet of code triggered when the Alert Close button is clicked on Bootstrap. HTML: <button id="btn_add"> Add </button...
asked by 04.05.2016 / 03:38
2
answers

How do I get the size of the window resized by the user?

I'm trying to use a script to make an image fade if the size of the resized window is less than 400px wide, but it's not working ... Script: <script type="text/javascript"> $(function(){ if($(window).width() < 400) { $('#facebook,...
asked by 02.05.2016 / 07:44
4
answers

Is there a way to set width specified in html as the max-width of this element in css?

The problem is this: I have the following html: <div class="page-left-col"> <p> <img src="/localhost/Department%20Pages/Communications/News/LearnStorm%20Rally.jpg" style="display: block; margin: 20px auto;" width="40...
asked by 03.05.2016 / 18:40
1
answer

JQuery menu does not open!

The page is this: link Problem: When I'm at a resolution lower than 800px (yes, I'm using media queries ), I make the menu retract into a default figure, the menu opens. But this is giving error: Uncaught ReferenceError: $ is not...
asked by 28.06.2016 / 14:30
1
answer

Add and remove fields dynamically with sum and multiplication of values

I have a page, where the user should put the quantity and value of each item. He can add as many items as he wants. Below the page, it will show the total result of the sum of all possible rows that the user adds. See the Fiddle below for a b...
asked by 24.06.2016 / 22:36
2
answers

Scroll according to section ID

I have the following li <li class="madmaxmenu"> <a href="#mad-max">Mad Max</a> </li> and the following Jquery $("li.madmaxmenu").click(function() { $('html,body').animate({ scrollTop: $("#madmax").off...
asked by 29.06.2016 / 05:32
1
answer

How to let a function run after a while?

I have a code in javascript (jquery) and it performs a function when I move the scroll of the mouse, however, it executes the function several times when I go around the scroll. He did not want this to happen, he wished he could only run again a...
asked by 30.12.2015 / 19:25