Questions tagged as 'jquery'

1
answer

Autocomplete of jQuery UI only works once

I'm working on a feature of a Rails application where we use a gem called Best in Place , which provides the possibility of inline editing attributes of a model. But there arose the need to use autocomplete of jQuery UI when the user is editing...
asked by 04.12.2015 / 13:03
1
answer

How to do regular expression to accept words and then 2 numbers with jQuery, without special characters?

Hello everyone. Next, I am doing a regular expression to accept the following: Word 02. Word and numbers, not just numbers. I'm using this code: $(".inputNomeTurma").keyup(function() { var valor = $(this).val().replace(/(([a-zA-Z]*\d{3,})|...
asked by 26.01.2016 / 15:43
1
answer

How to make array2 have the same relation between the indexes after the shuffle of array1

   array1 = [1,2,3];   array2 = ["one", "two", "three"]; array1 and array2 have a direct relationship between indexes.    Shuffled array1 - > array1 = [3,1,2]; How to make array2 have the same relation between the indexes after th...
asked by 29.07.2016 / 00:51
1
answer

Send data from one modal to another modal

I have a modal called details , I have the following data in it: <input type="text" class="form-control" id="id" name="id" required> <input type="text" class="form-control" id="nome" name="nome" required> That...
asked by 14.12.2015 / 19:22
1
answer

How to serialize a dateTime displaying in dd-MM-yyyy format hh: mm: ss

How do I send to View() of my Controller in Json format, the date formatted in the dd-MM-yyyy hh:mm:ss pattern? In the data transport between View and Controller I'm using AJAX. public ActionResult GetList(Object abc) { ......
asked by 06.01.2017 / 20:23
1
answer

Memory Consumption (HTML Element x jQuery Objects)

I'm creating a system where I need to write many DOM elements into variables. Is there any difference in memory consumption in writing HTML elements vs. jQuery objects? HTML elements: var elemento = jQuery('#elemento')[0]; //mesmo qu...
asked by 05.11.2015 / 13:36
2
answers

Execute Function only when the div appears

Hello everyone, I have an accountant and I wanted it to start only when the #homario div starts appearing on the screen. <script type="text/javascript"> $(document).ready(function (){ $('.spincrement').spincrement({...
asked by 09.11.2015 / 17:01
1
answer

How do I validate a value without leaving the page?

I'm developing a system with the part of the discount, so I wanted the user to type the discount and after that it would validate if it has or not and the percentage of the discount appears. $cupom = $this->input->post('cupom_desconto');...
asked by 09.11.2015 / 20:12
1
answer

Form does not send messages

I have a bootstrap form of which I'm using jquery to do the firing. I'm using the following code: Form <form class="contact-form" name="contact-form" method="post"> <div class="col-sm-5 col-sm-offset-1"&...
asked by 23.11.2015 / 18:31
2
answers

Append / Prepend in DIV with fixed child - jQuery

How do I give append / prepend to a div that has a fixed child using jQuery. For example: <div class="container"> <div class="placeholder"></div> </div> When you give the first append / prepend, you need to in...
asked by 25.11.2015 / 13:46