Questions tagged as 'jquery'

3
answers

How to preview a loaded image in a "file" input?

Description: I have an example here of how my system is working. EXAMPLE link HTML <input type=file> <input type=button class=hide value="Adicionar outro"> JAVASCRIPT function verificaMostraBotao(){ $('inp...
asked by 21.02.2014 / 19:53
4
answers

How to make a character counter of a textarea?

I tried to make one, but I always came up against some limitation. I think my logic will not work, but I still can not think of another one. Javascript: $(document).on("keydown", "#TxtObservacoes", function () { var caracteresRestantes...
asked by 17.07.2014 / 22:14
2
answers

Leaving FullCalendar in the language pt-BR

Hello, I downloaded a fullcalendar template from Adan Shaw , but the default language is English, I would like to leave it in Portuguese. How do I make this change? Thank you.     
asked by 02.12.2015 / 13:32
2
answers

Height property of jQuery and JavaScript, what difference?

What is the difference between $(window).height() of jQuery and screen.height of JavaScript? Using them I notice different results ... And what is similar to screen.height in jQuery?     
asked by 07.09.2014 / 02:06
3
answers

Separate typed words within an input

I have a input , where the user types his / her full name from the following code: <input type="text" id="fullname" name="fullname" title="fullname" maxlength="255" class="input-text fullname onestep" placeholder="Escreva o nome compl...
asked by 31.10.2017 / 19:26
2
answers

Syntax, meaning

$("#add_city_btn2").click(function() { var city = $("#add_city2").val(); $("#cities2").append($("<option>", { text: city, selected: "selected"})).change(); $("#add_city2").val(''); return false; }); What does the line...
asked by 13.10.2015 / 17:42
5
answers

How do I change the value of a "date" attribute in JQuery?

I have a data-order attribute on a button and I want it to be incremented as I go adding new days to my list by clicking the button, so I will have: day-1 day-2 day-3 day-4 ... and so on. Does anyone know how I can increment this va...
asked by 31.01.2014 / 15:13
5
answers

Get value of an attribute in td

I have a PivotTable where there are 9 columns In one of the last columns there is a disapproval button , and when I click it, I want to get the name is in a td in the same tr dynamically. SCRIPT $(document).on("click", ".btn-d...
asked by 24.07.2014 / 15:31
2
answers

What is the difference between .prop () and .attr ()?

Do these two jQuery functions do exactly the same thing? Or is there any difference between them. It is reported that the .prop() function came from jQuery 1.6 Did it come to replace .attr() ? Or are both present (and used) in...
asked by 02.03.2016 / 18:27
1
answer

Difference between keyup (), keydown () and keypress () [duplicate]

I would like to know the difference between keyup() , keydown() and keypress() , in my opinion I think they do the same thing, but what is the purpose of each? Performance improvement for each type?     
asked by 21.01.2016 / 14:38