Questions tagged as 'jquery'

1
answer

jQuery, close button works only once

I have a textbox that is generated by a button, and it has a button with the function close it, however it only works once, for the first box generated, I would like it to work on all that are generated later. And in this I have another small...
asked by 04.01.2016 / 22:09
1
answer

Is it possible to prepend an attribute?

I have the following situation: When I request my bank, my <img> tags already come with the src filled attribute, is it possible for me to prepend in it? For example: <img src="meuArquivo.jpg"> , and via...
asked by 13.01.2016 / 14:23
1
answer

Fill in textfield with the description corresponding to the selected value in a combobox

I have in my view a select that receives the data of the functions and the lists. <select id="id_mfuncao" name="id_mfuncao" class="form-control"> <option value=""><< selecione >></option> @foreach($mfuncoe...
asked by 15.01.2016 / 13:47
1
answer

How to resolve the InvalidCharacterError error

I'm using a ajax request, which returns me a json, from a .php page, with the name of a city of Mato Grosso do Sul named: Antônio João . The error is javascript. Which reads as follows:     
asked by 15.01.2016 / 23:01
1
answer

Validate several Emails inside input to enter from the enter key with jquery

I want to use a input to store multiple emails but I'm having trouble deploying this in practice. When placing an email in input the user press enter, to validate the email, if valid add the character ; How to do this...
asked by 01.10.2015 / 22:37
2
answers

Remove substring with regex

I have the string: var str = "Quantidade [12]"; I need to retrieve the string but remove the space and [12], ie I need to return only the value: Quantity . In case the string is var str = "Quantidade máxima [12]"; , I need to get...
asked by 02.10.2015 / 22:46
1
answer

How to add groups of inputs according to the number inserted in a text box without refresh

How can I make a form that has a box of text type number, and according to the number that I enter appears groups of text box to fill in that form? Example: Text box (number of days) = 4 <div> <input type="date" name="data[]">...
asked by 03.12.2015 / 17:07
1
answer

How to make it a function to apply it to a PHP variable?

<script> jQuery(function($){ $('#timer').countdown({ until: new Date("2015-11-04 12:00:00"), compact: true }); }); </script> I need to transform the code above into a function and...
asked by 08.10.2015 / 13:51
1
answer

jquery inputmask does not accept quantifier in function "validator"

I'm trying to make a customAlias to use with jQuery Inputmask, but I'm facing the following problem: My input: <input id="input-field-nome" data-inputmask="'alias':'customAlias'" type="text" data-rule-required="true" class="form-co...
asked by 09.10.2015 / 17:18
1
answer

Capturing value $ .getJson is coming undefined

I'm trying to mount a table from a JSON I get from a php page, however when I do the append the captured value appears such as undefined . $.getJSON("getEventoCategoria.php", {ID_EVT_Evento: ID},function (data) {...
asked by 07.10.2015 / 16:22