Questions tagged as 'jquery'

2
answers

Event that identifies when the browser is resized.

Is there any event javascript that identifies when the browser resizes the page? I'm having problems with page resizing with a FancyBox window, which loses its dynamic changes and returns the setting when it was opened.     
asked by 20.03.2014 / 18:46
1
answer

Get element without id

I have div , and within it a canvas without id and other elements . <div id="itens"> ... <canvas></canvas> ... </div> How can I get canvas using JQuery ?     
asked by 20.08.2015 / 16:31
1
answer

How to insert value returned in form fields with jQuery?

I need, after doing query on BD , to insert values returned in fields of a form, since I will use these fields to make a change in BD , the call to search is working correctly and is configured in this way, function BuscaDados...
asked by 08.09.2015 / 20:54
2
answers

jQuery - Use two functions together

I need the same method to be called in two events, that is, in the page load load the data, and if the value of the input is changed load the code again. ($("#cpf_cnpj").load(function() or $("#cpf_cnpj").focusout(function()) { codigo }...
asked by 23.06.2015 / 19:12
1
answer

How to put a text cursor to start on the right? Calculator

I'm doing a basic calculator and in the calculations screen, I want the numbers to be "printed" from right to left. How can I do this?     
asked by 31.03.2015 / 03:14
1
answer

How to block cursor movement in masked input?

I'm using the jQuery Masked Input plugin. <input name="dueDate" class="form-control input-mask-date" type="text" placeholder="Data de Vencimento" data-parsley-trigger="keyup" required=""> $(".input-mask-date").mask("99/99/9999...
asked by 13.06.2017 / 21:06
1
answer

How does v-if work internally?

From what I saw, using v-if you can show and hide an element through a condition, but it does not work as a toggle Jquery, strong> v-if ends up removing the element and is able to return the same element depending on the condition. I ima...
asked by 30.08.2017 / 02:56
2
answers

How to insert text at cursor position?

How can I enter text at the position of a cursor? the field is a contenteditable so it may contain in addition to normal html css texts and images. I took the example in the plugin's documentation: Summernote - How to insert text to cursor p...
asked by 24.07.2017 / 14:32
1
answer

removeAttr ('required') obsolete?

I have the following line in my code: $('#infs').removeAttr('required'); And when I use the jQuery Migrate plugin, I get the following warning in the debug:    JQMIGRATE: jQuery.fn.removeAttr no longer sets boolean properties:   requ...
asked by 25.07.2017 / 17:21
1
answer

Percentage in ajax requests

I wonder if it's possible to create a percentage in Ajax requests. For example: When the form is submitted it starts with 0% up to 100% (when complete) My ajax: index.php <script src="jquery.js"></script> <script> $(...
asked by 10.12.2014 / 13:17