Questions tagged as 'jquery'

2
answers

Digitalbush plugin for masks CNPJ and CPF in the same field

I use the plugin below in my html fields to make the mascara, I came up with the need to put the cnpj and cpf masks in the same fields, does anyone know how to do this with this plugin? link $("#cpf").mask("999.999.999-99"); $("#cnpj").ma...
asked by 07.04.2016 / 20:29
2
answers

Remove focus from input when it is with attr readonly

I have the following problem, I have an input with the readonly attribute. When clicked on it it is selected. I needed to prevent this because I have a function using onblu r that can only work when input is not in readonly...
asked by 25.11.2016 / 13:22
2
answers

Capture values after an input checkbox

Good morning, I have a 'Attendance' form where there is a checkbox for each service. CurrentlyIcangettheidofeachselectedcheckbox,putitinanarrayandprintthisarray,butthat'snotmygoal.Iwouldlikeforeachcheckedcheckboxtocapturethevalueoftheservice...
asked by 29.05.2016 / 18:08
1
answer

How to monitor the change of an input type text field?

I need to monitor the change of the contents of a text field, the function I use is this: $(document).ready(function() { $("#nome").on("keyup change click focus", function() { $(".classenome").val($(this).val()); }); });...
asked by 10.06.2016 / 23:40
4
answers

Replace a specific character in an input type="text"

I need to make a function in JavaScript that when clicking the button make sure that a specific character was entered, in this case the ' (single quotation marks). If yes, replace the single quotation mark with a blank space. See the c...
asked by 17.12.2018 / 18:39
1
answer

Events jQuery runs automatically

I have the following code: $(function(){ function teste(teste){ console.log(teste); } $('element').on('click', teste('teste')); }) When I run this code, the teste function is triggered without clicki...
asked by 10.03.2014 / 12:45
3
answers

Use symbol in an input text, and disappear when writing

I have a text box, an input type text . And I wanted to insert an image in the corner, for example, a magnifying glass. And when the user starts writing, this magnifying glass disappears. Is it possible to do this in Javascript? <input typ...
asked by 10.02.2014 / 10:53
3
answers

How to check the empty values of a dynamic form?

How to use Jquery to attack the name of all inputs and check for value Current Code Form: ... <input type="text" name="nome[]" value=""> <input type="text" name="nome[]" value=""> <input type="text" name="nome[]" value...
asked by 27.05.2015 / 15:45
2
answers

Validate input to only receive numbers with jquery?

I need this input to only receive numbers: <input class="form-control input-sm " placeholder="número" maxlength="4" type="text" ng-model="numero.nJogo" /> This I need to get only values with this formatting (20.00) <input class...
asked by 30.12.2015 / 03:42
3
answers

Strange behavior when displaying an attribute using click ();

I am developing a script that requires calling a click() of a button because it is invisible on the page, however jQuery does not seem to return the updated attributes when they are changed. Here's an example: $(function(){ $...
asked by 05.08.2015 / 21:17