Questions tagged as 'jquery'

3
answers

convert integer to decimal in jquery

I need to convert for example the value "025" for "0.25" or "005" for "0.05" : I'm trying to do it like this: var valor1 = $("#ValorDesconto").val().replace(/[^\d]+/g,''); parseFloat(valor1).toFixed(2) How do I? the way I did abov...
asked by 29.09.2016 / 21:40
1
answer

What is the relationship between the Primefaces ajax and the events

In the face of certain problems during my development the following doubts arose for example. When I use the ajax tag in Primefaces , it has the event property where we pass events, so I had some questioning. Once I had...
asked by 06.08.2014 / 12:15
1
answer

JSON format file

And then everyone's beauty? I'm half doubt stupid, but I could not find an answer. I've been parsing a few sites and seen that instead of calling a $.AJAX request on the server to populate a dropdown data, for example, they call...
asked by 20.07.2016 / 15:02
2
answers

Time Validation

Personal I'm doing a time validation in Javascript . I can not type the following hours 14:00, 15:00, 16:00 until 20:00, but other hours with you. I'm doing this: var mask = "HH:MM", pattern = { 'translation': {...
asked by 29.08.2016 / 23:36
2
answers

Confirm before submitting javascript function

When I submit a form, through onsubmit(checkFormIsCorrect()) , I call this javascript function that will validate several situations and submit or not the form. In this function: function checkFormIsCorrect() { if (!$('div.has-err...
asked by 29.08.2016 / 16:22
1
answer

Is there any way for a div to take on the role of scroll?

I have the following code: $("#scroll").draggable({ axis: "x", scroll: true, containment: "#area" }); .area{ position: absolute; width: 1010px; height: 100px; margin-top:10px; margin-left:10px; overflow-x: auto; overflow-y...
asked by 24.06.2015 / 06:52
3
answers

jquery function does not work with routeprovider angularjs

I'm doing a web application with AngularJS and made this routeprovider to single page angular.module("app").config(function($routeProvider){ $routeProvider.when("/Proposta", { templateUrl:"Proposta.html", controller :"ClienteCo...
asked by 03.08.2015 / 05:12
1
answer

How to make a link by clicking on a div

I forgot how to make links with jQuery that execute when clicking on a div. The link I needed was with target blank. I found this from here but I did not understand the code and could not use it. jquery('a[href="http://site.com"]').attr('ta...
asked by 04.05.2014 / 00:28
2
answers

Debugging associated events via jQuery

When I want to debug an event associated with an element via jQuery, I can currently do it in the following ways: In Chrome, you can enable the debugger specifically for certain types of events. However, this is not useful when it is necess...
asked by 29.01.2014 / 14:12
3
answers

How to effectively remove the refresh meta tag from a page?

Lately I have accessed several news sites that use this meta tag to update their pages from time to time: <meta http-equiv="refresh" content="300"> I understand the reason for using it from sites, but over time this functionality beco...
asked by 31.01.2014 / 21:46