Questions tagged as 'jquery'

2
answers

Replicate val () content in span

I found this code that works great on inputs: <script> $(function() { $("[name='email']").keyup(function() { var email = $(this).val(); $("[name='login']").val(email); }); }); </script> <input type="text" na...
asked by 11.05.2017 / 18:54
2
answers

how to identify disable tag with jQuery

I have input with class form_campos , I need to make jQuery identify when input has tag disabled and change class to form_disabled .form_campos { height: 31px; width: 100%; color: #484848;...
asked by 09.05.2017 / 14:28
3
answers

Mask for Input HTML5 fields

I'm applying a masking addition feature on my code, even when the user fills in the phone or mobile, the chewing will be populated automatically. However, my page does not return anything as the user types. <head> <!-- Required meta t...
asked by 28.01.2018 / 22:58
1
answer

How do return a javascript function return an HTML?

I took the following function in JavaScript (jQuery): function CustomAlert() { this.show = function (nome) { }; } var Alert = new CustomAlert(); $(document).ready(function () {...
asked by 31.08.2016 / 15:31
1
answer

Jquery find the key from a value

I have an array with values that vary by page. I'd like to know how to get the key for a specific value. Example: minhaarray = [5,10,15,20,25] How do I extract the key from the value 15?     
asked by 12.02.2017 / 19:54
1
answer

How to leave CEP form sliding the same as ifood's website? [closed]

This is the form of the site I want to change: artnaweb.com.br/pediragua Leave this same: ifood.com.br I do not understand Jquery. I have knowledge only of HTML and CSS. Thanks!     
asked by 03.02.2017 / 01:16
2
answers

Focus on the last character Jquery

I need that when the field receives the focus, the cursor stays on the last character. The way the cursor is is at the beginning of the field even though the field is not empty. function gravaObs(unidadeObs) { var gasObs = $('#obsGas_'+uni...
asked by 19.08.2017 / 23:14
3
answers

Doubts Javascript Alert

I was looking for a function to display an alert message to the user when he left the page and located this one in the forum: <script> // Script de Alerta ao fechar a pagina... window.onbeforeunload = fecharJanela function fe...
asked by 18.08.2017 / 15:02
2
answers

Open a modal with a button in another modal?

I have a modal of bootstrap where it has a button that closes modal but I wanted it to barely close the modal, open another. I already tried to put a id on the button to when clicking to open the modal again but it is not wo...
asked by 06.10.2017 / 16:25
1
answer

How to "concatenate" JavaScript functions?

How does lib jQuery do? Example: $ (element) .text ('my text'); I want to know how to do a function like text() in pure JavaScript, just to learn the theory. I want to know how the html element is passed as a parameter to the tex...
asked by 29.09.2016 / 20:46