Questions tagged as 'jquery'

2
answers

How to force download of local information in the browser? [duplicate]

I'm trying to do something like this: $('button').on('click', function() { obj = {}; $('pseudoform').find('input,textarea').each(function() { obj[$(this).attr('name')] = String($(this).val()); }); json = JSON.st...
asked by 03.07.2017 / 20:47
2
answers

Get all information from the file that came from the input file

I know that it is possible in PHP to receive a certain file and get all information about it, such as extension, size, date, among others. I'd like to know how you can get this information with javascript. The user needs to select an image...
asked by 27.06.2017 / 13:52
2
answers

Change phone mask

Hello I'm trying to change a mask from a field on my form. Below in the field highlighted in blue, it is as it currently is, and in the second field it is how I want it to be (without the space between ) and 1 ). I want to change...
asked by 21.07.2014 / 15:43
3
answers

Fade effect on image exchange with jQuery

The following code makes an "image fader" in a div that I have in my document. However, the effect is very 'dry', I would like to have a transition during the exchange of images, like the fade effect of jQuery. var images = ['image-1.jp...
asked by 26.03.2014 / 02:16
2
answers

Rotation check in javascript

Is there any way to check the rotation of a div in javascript , for example checking style left is offsetLeft , could someone tell me how the rotation would look?     
asked by 28.02.2014 / 00:14
2
answers

Filling two equal inputs

Well I have the following problem, I have two inputs: Desconto<input type="text" name="desconto" id="desconto" style="width: 100px" > and Observação<input readonly="true" type="text" name="obs" id="obs" style="width: 400px; heig...
asked by 07.01.2016 / 18:05
2
answers

How to select and pick values from all checkboxes with the checked property?

I noticed that "selecting all checkboxes with the .checked property checked is a very recurring question in web development, so I'll post a solution here using Jquery . sub> How to select and pick values from all checkboxes with th...
asked by 14.06.2016 / 22:12
2
answers

Randomly position div when loading page

I'm trying to make a div randomly position when loading page. I thought of the following, to make the margin-top and margin-left of div were random when loading the page, when loading again already displayed another m...
asked by 02.01.2017 / 13:43
2
answers

Sort Dropdown with jquery after append [duplicate]

If the user does not find the desired item in the dropdown list, it can include a new item, for this I used the prompt function of javascript , and then the user types the name and clicking Ok , if the object is not a...
asked by 19.12.2016 / 21:41
2
answers

Only receive money field number

I'm looking for a td with jQuery. var linhaTr = $("tbody").find("tr:first-child"); var tamanhoTd = linhaTr.find("td:nth-child(2)").text(); and it returns me for example R$ 5,00 . But I need to get back to make...
asked by 02.01.2017 / 19:45