Questions tagged as 'jquery'

3
answers

is there any way to close a browser tab with javascript? [duplicate]

I have a script that only works locally. Is there any way to close the browser tab using javascript ? If so, could you give examples?     
asked by 16.07.2015 / 20:10
2
answers

How to use jQuery effect FadeIn and FadeOut in warnings to users

I have the script FadeIn: <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script><script>$(document).ready(function(){$("button").cli...
asked by 04.02.2015 / 19:40
4
answers

Make a regex to remove characters

In a return of a jquery function, the returned date comes in this format. /Date(1401731794773)/ I would like to remove the invalid characters on this date, which are: /Date( and )/ I only need the date (remaining) compon...
asked by 16.06.2014 / 18:29
2
answers

Problem converting input text to capital letters

I have input and I want it to only allow capital letters in real time. This code seems to work perfectly. $("#texto").on("input", function(){ $(this).val($(this).val().toUpperCase()); }); But I noticed a bug and I do not know...
asked by 06.04.2018 / 15:10
2
answers

Disable button after the jQuery click

Well I'm having the following problem. JQuery identifies the data-link tag to retrieve the link and redirect the page. Soon after that the booting has to be disabled. The problem is that clicking the button is disabled and is not redir...
asked by 26.05.2017 / 13:49
3
answers

receive two houses after the comma

I need to receive a cash value and am only getting a house after the comma. example 75.50 I get 7.5 and 7 I need to receive 7.00; I'm using Jquery;     
asked by 18.05.2017 / 22:11
1
answer

JQuery does not take input value

$(document).on('click','#submit',function(){ console.log($('#prescricao[qtd][1]').val()); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><inputtype="text" name="prescricao" id...
asked by 17.08.2017 / 17:46
3
answers

jquery to click and make appear / disappear different divs

I need to make clicking on the menu item, a div linked to this item appears on the screen, if I click on another menu item, the previous div disappears and the new div appears ... in the photo below the get an idea of what I need: When I c...
asked by 28.07.2017 / 14:37
3
answers

What is the difference between .on ('input') / .on ('paste') / .on ('change')?

I was trying to do a validation but with .on ('input') it works better than .on ('paste') a timeout for it to work), can someone explain the difference between the two? Here is my code to illustrate the question: paste $(this).on("pas...
asked by 25.08.2017 / 16:56
3
answers

Disable input sequence with jQuery

Well in the example I posted I can disable input valor1 , vendedor1 and supervisor1 by checking the recalcular1 option. The problem is that I have a form with several input, and to avoid a very large code I wanted t...
asked by 10.07.2017 / 19:08