Questions tagged as 'jquery'

2
answers

How to insert variable in html generated by javascript

The problem I have is the following. I have a code that generates multiple html results for me. But I need a detail that I could not implement. The code is as follows: $('#avaliacoes').append('\<div class=\'estrelas\'><input type=\'ra...
asked by 01.06.2016 / 19:47
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
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
2
answers

jQuery - Select option and return values

I have the following form: <div class="form-group"> <label for="sms_mensagem" class="col-sm-2 control-label">Mensagem Pré Definida</label> <div class="col-sm-10"> <select class="selectpicker" id="men_...
asked by 13.10.2016 / 14:54
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
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
1
answer

button to enjoy / break with AJAX

On a certain page I have a button / link written "Favor" <a href="SITE.COM/post/favoritar/ID" class="btn-favorite-normal">Favoritar</a> Where ID is the publication id, but I already have a script in PHP that will insert and re...
asked by 15.07.2016 / 17:09
1
answer

Change src from iframe and post date with javascript

I have a script where I change the src of the iframe by java script (it has to be by this methodo), but I do not know how to send data by post only by get as it is only by the data in the url someone knows how to do this <div id="overlayedt...
asked by 06.07.2016 / 03:23
2
answers

Translate website automatically according to the netizen's country

I wonder if there is a function php or JS that through the visitor's IP could translate the site automatically according to the netizen's country without having to choose the language manually in a select. Suppose my site was visited by someo...
asked by 06.07.2016 / 05:13