Questions tagged as 'jquery'

1
answer

How to filter a json object with jQuery?

I have the following json object: var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" }...
asked by 08.05.2017 / 18:55
1
answer

Change date format to Brazilian default, datepicker JQuery

I'm having a problem with date format, if I put dateFormat: 'dd/mm/yy , my alert returns me invalid date, if I pull it off and leave American default then returns the date. Any ideas how to resolve this? I want to keep the Brazilian sta...
asked by 07.04.2017 / 19:57
1
answer

Uploading image Laravel 4.2 and Ajax

I'm trying to upload an image, to save it along with the rest of the fields, but when I press the save button, the image field goes empty .. This is the Form <div class="panel"> <div class="panel-heading"> <h3><i...
asked by 05.05.2017 / 17:56
2
answers

Show textarea corresponding to href

I have this JavaScript / jQuery snippet where I have a hidden textarea and a href . The intention is to click on href to textarea to appear so that the person can type his answer. I'm not able to open textarea...
asked by 10.05.2017 / 01:14
1
answer

Improvements in dynamic content

Good afternoon, I have a function in jquery that I have been improving since I discovered it in forums, it serves to create elements dynamically using jquery /* função que insere e remove cadeia de inputs */ var inputnew = 0; function...
asked by 05.05.2017 / 17:50
1
answer

effect with jQuery on select

I'm putting together a custom input with the style of google's design material. The effect is working in the input, but in the select is not working. Does anyone know what I'm doing wrong? NOTE: The effect I'm referring to is the blue line...
asked by 10.05.2017 / 00:17
2
answers

Limit character entry in EditFor in MVC

I have a character limiter for just TEXT. Now I need the characters to be limited to only 2 (I want to make the user type the state, for example: PR, SP, RJ ...). How do I do it? $(document).ready(function () { $(".apenastexto").ke...
asked by 18.05.2017 / 02:23
2
answers

Values from one form to another

No index.html will have a pre-form with name, email, city and UF. I will need to get this data and play to another form that will be in another html file. I have a certain notion in jQuery, but I wonder if I'm going to have to use a...
asked by 27.03.2017 / 21:05
1
answer

Get value from a hidden field outside the php loop

Colleagues I have a code in php that brings the value of the product from the bank. <?php ... while($jmMostrar = mysqli_fetch_object($sqlMostrar)){ $mostrar = "<input type='hidden' id='produtos' name='valorProduto' value='".$jmM...
asked by 27.03.2017 / 22:58
1
answer

Problem when requesting with ajax in Laravel 5.4

I'm learning the web language for creating my website and using the Laravel framework 5.4, and having trouble sending forms with ajax. Every form I send, returns me the error:    Unprocessable Entity {"account": ["The account field is requ...
asked by 09.03.2017 / 17:04