Questions tagged as 'javascript'

3
answers

currency mask jquery

In my xhtml I have 2 input value 1 and value 2. The first input perfectly works the jquery currency mask. More in the 2 input that is in a modal the currency mask is not working. currency function function configurarMoeda() { $(".moe...
asked by 13.05.2016 / 03:22
1
answer

How do I pull the selection from a dropdownlist using jQuery?

I do not have much knowledge of jQuery, I would like to know how to get the selected attribute of the dropdownlist using jQuery?     
asked by 11.05.2016 / 17:28
1
answer

Facebook API with Javascript SDK is returning only name and id

Hello, I'm trying to use facebook's api to login on a certain page, it worked fine, but the data return only takes an object with name and id, I read some articles and I saw that the object usually returns: {name: ,id: , email: , comments: ,...
asked by 13.03.2016 / 16:33
1
answer

How to use the bootstrap collapse in this dynamic page?

I have this screen to insert images in the system, the part of the insert works correctly, but I want that when clicking on an image, the edit button appears in the image, and if I click again on that image, this collapse of the bootstrap, and I...
asked by 12.03.2016 / 03:19
1
answer

Define the class of a li element created at runtime

Below I have a stylized list with bootstrap (defining the class of ul and li ) <!DOCTYPE html> <html> <head> <link href="bootstrap-3.3.6-dist/css/bootstrap.min.css" rel="stylesheet"> <titl...
asked by 10.03.2016 / 14:42
1
answer

Put words in capital letters

I have an input and I would like that when the user types in the letters they are getting in a capital letter because of the javascript effect. Without the form I can, but when I put the form does not work. ' <ui:define name="content">...
asked by 12.03.2016 / 19:35
1
answer

Select option to select otherwise with AngularJS

I recently found this example in JSFiddle to select given option in a select element. I noticed that it is selected as follows: HTML : <div class="listitem" ng-repeat="Choice in Person.Choices"> {{Choice.Name}...
asked by 10.02.2016 / 19:31
1
answer

How to upload the selected image with javascript?

I'm adapting my blog to be responsive. However, by hiding the banner, it is still there and always loaded page access. I wonder if you can upload images according to viewport resolution. I do not know if it is possible, but my goal is to find...
asked by 11.02.2016 / 17:04
2
answers

Add methods to Date using typescript

I'm trying to create a method to format the date. Something like var minhaData = new Date(); console.log(minhaData.format('[d]/[m]/[Y]')); I searched the internet and managed to develop this section: interface Date{ format(formato:str...
asked by 11.02.2016 / 12:13
1
answer

How to make audio capture with HTML5 and Javascript?

I'm doing research on audio recording with HTML5, but none of the tutorials I've found worked, many of them use getUsermedia (), but it seems to me that it's deprecated so someone could present me with a practical example that really works for ca...
asked by 14.02.2016 / 16:33