Questions tagged as 'jquery'

2
answers

How to make Jquery datepicker accept only months and year?

How can I convert my jQuery datepicker to only accept months and years?     
asked by 12.09.2015 / 23:29
4
answers

Doubt about each () in Jquery

Because the code below only returns me the first "104 104" and not "104 106" $(function(){ $('#sortable li').each(function(){ console.log($('#sortable li').attr('id')); }); }); <script src="https://ajax.googleapis.com/aja...
asked by 24.10.2015 / 20:07
3
answers

Button and span logic from CSS

I have a button and a span from the following code: <div id="onestepcheckout-place-order"> <button type="button" class="button btn-proceed-checkout btn-checkout" title="<?php echo $this->__('Place Order Now')...
asked by 07.11.2017 / 20:42
1
answer

What does cardinality mean in this case? (jQuery InputMask)

I have the following excerpt: $('#elemento').inputmask({ mask: "*{1,255}", greedy: false, definitions: { '*': { validator: "[A-Za-záãâÁÂÃéêẽÈÊẼìîĩÌÎĨòôõÒÔÕùûũÚÛŨ ]", cardinality: 1...
asked by 31.10.2017 / 12:31
2
answers

How to transform input value into string

How do I make the value of an input into a string, including whether the user types HTML tags, with JavaScript or jQuery. <div class="val-input" contenteditable="true"></div> $(function(){ var val = $(".val-input").text(); });...
asked by 23.05.2015 / 01:38
3
answers

Mascara for weight

Searching the internet, I found a code that makes weight masks in the field. But this code works with ID criteria. I would like it to work with CLASS, so I can use it in other fields. function id(el){ return document.getElementById(...
asked by 14.05.2015 / 17:55
2
answers

Create a link that when clicked I get your text

I have a table that has the Material ID and the Name, the name is a link, I need to make it when I click the link it takes the ID and the name puts it in a text field in the form. The table is generated dynamically by a script $('#tbl').app...
asked by 21.05.2015 / 15:58
1
answer

Call PHP method with ajax

I have a code that does a validation in javascript, and would like it if validated as true, change a table from the database. I thought of using ajax, so as to validate as true, call a method in a .php file, however I do not know how to do it....
asked by 14.05.2015 / 00:38
1
answer

Jquery cancel request ajax

How can I cancelar uma solicitação do Ajax that has not yet received the answer using Jquery.     
asked by 07.05.2015 / 14:41
1
answer

What does "eq (0)" serve and how does it work?

I was seeing a slider tutorial for jQuery, and in a part of the code, in which the objective was to go back to the first image, the code author did in a way I do not know, I knew how to search this on Google: $(".ativo").fadeOut().removeClas...
asked by 02.01.2015 / 16:04