Questions tagged as 'javascript'

2
answers

Return div to the previous style, after changing style, only with javascript

Code: function valida_form (){ var filter_nome = /^([a-zA-Zà-úÀ-Ú0-9]|-|_|\s)+$/ ; if(!filter_nome.test(document.getElementById("input_nome_cad").value)){ document.getElementById("input_nome_cad").value=''; document.getEle...
asked by 01.06.2016 / 02:23
1
answer

Two effects with javascript in one image

I want to put two effects with javascript in an image. the First would make the image appear to appear once and from there it would be glowing frequently. Is it possible? <div id="logo"> <a href="index.html">...
asked by 01.06.2016 / 21:45
3
answers

Check if there are equal fields in a form

I have a form with 5 selects and I'm trying to check if any of these selects are of the same value. $('form').submit(function (event) { var $commitment = $("[name='commitment']").val(); var $proActivity = $("[name='proActivity']...
asked by 29.11.2016 / 15:11
3
answers

Load an element in ajax as the user chooses

I have a code that inserts a textearea field as a choice of input radius. I would like to simplify this code making it use only JavaScript. It's possible? Follow below: HTML <p>2.3 - Você estuda? </p> <input t...
asked by 22.11.2016 / 12:55
1
answer

Capture a state name (uf) and an image

Good night everyone. I have an image of Brazil with its states: HowdoI,ifIclickontheimageofthestateofSãoPaulo,fillinthisnameinatextfield.<inputtype="text" name="uf" id="uf" value=""> Thank you in advance for your help.     
asked by 17.10.2016 / 22:28
1
answer

Paste Inputs with type="money"

$(function() { $("input[name*='pvn'").maskMoney({ thousands : '.', decimal : ',' }); }) I do this to get the inputs with name='pvn' and apply a mask, but I would like to apply this mask to all money fields, so I...
asked by 18.10.2016 / 16:03
1
answer

Problems deleting via ajax with laravel

I'm having trouble effecting a deletion with Laravel 5.3 . By submitting the ajax it simply is not returning anything to me. My JavaScript looks like this: $.ajaxSetup({ headers: { 'csrftoken' : '{{ csrf_token() }}' } }); func...
asked by 08.12.2016 / 23:25
3
answers

Avoid editing in the field

I am trying to do the following: the user types his / her zip, and then it is populated automatically, estado (select) cidade (select), rua (input) and bairro (input), when the user types his / her zip and for example...
asked by 16.12.2016 / 13:40
2
answers

Search in Ajax within div clone jquery

I have a search in an input that returns the result in ajax, type autocomplete that is working (when I type 3 first digits it shows the results), but when I put this input inside a div "clone" (jquery) it does not search and returns no results ....
asked by 09.12.2016 / 15:03
2
answers

Insert a point in the penultimate item of the variable

I have a variable with the value "14013" and I'm trying to insert a dot to get the following value "140.13" in my loop. for (var i in teste) { for (var j in (teste2[teste[i]])) { valorFinal[j] = resultado1 + resultado2; //valor...
asked by 18.07.2016 / 01:59