Questions tagged as 'jquery'

2
answers

Return N elements from a list in jQuery

I have a list of elements, say a list of rows in a table: $('#minha_tabela tr'); Is there a selector, method or overload in jQuery so I can return more than one line passing multiple indexes? Something like, $('#minha_tabela tr').get(0...
asked by 21.11.2014 / 05:21
2
answers

How to change the value of subsequent inputs?

In a form there are N occurrences of values for the same product, to facilitate I'm wanting to apply the same value for the subsequent inputs. For example, using the structure below: <input class="valor partida" type="text" name="novo_va...
asked by 18.05.2016 / 21:50
2
answers

clear input with javascript onchange event

I have 2 input: <input name='nome1'> <input name='nome2'> I need to create a javascript that clears the name2 when the value of the name1 is modified. Can anyone help me do this quite simply?     
asked by 20.04.2016 / 22:07
3
answers

Reset "select" when unchecking checkbox

Hello, I'm trying to use the Jquery checkbox, And the second question is whether there is a better (simpler) way to get the same result. I thought that I had succeeded, through a previous question but an error appeared. Thanks in advanc...
asked by 21.03.2016 / 19:49
4
answers

Multiples Bootstrap Alerts

I'm trying to create a default response using alerts do bootstrap my goal with a simple: $(".alert").addClass('alert-success').text('Configurações salvas com sucesso.'); I choose the class alert-success and enter a text i...
asked by 14.07.2015 / 21:15
4
answers

Select with redirect

I do not know how to program! but I can make small changes. I need to create a select and when the person chooses the item, it will be redirected <select> <option value="Vilhena">Vilhena</option> <opti...
asked by 24.07.2015 / 19:16
2
answers

Hide and Show all the descendents of an ul - JQuery

I have the following lists: <h4>Procedures</h4> <ul> <li">Foo</li> <li">Foobar</li> <li">FooBarBazz</li> </ul> <h4>Packages</h4> <ul> <li">Foo</li&...
asked by 07.08.2014 / 21:13
2
answers

javascript function duplicating firing by init method

I have a function in my main menu that, when clicked, starts a 'classe' for the sector in question, everything happens well, however, I need to start the same class again when someone returns to the sector, and in that, the methods have t...
asked by 27.10.2017 / 14:29
2
answers

Validation of two fields with jQuery.validate and DataAnnotations

Good afternoon guys, Next, I need to validate if one of two fields is filled, I tried to create an Attribute function with ValidationAttribute but it did not validate correctly, I think jQuery.validate does not recognize it. Follow the cod...
asked by 14.09.2016 / 19:15
2
answers

Adding inputs in jquery, but not deleting the ones that already exist

I am currently having the following code in jquery to add inputs according to the number in a text box, However if the form already exists for some field when clicking to add another one is deleted all fields and their content and inserted ne...
asked by 09.12.2015 / 13:23