Questions tagged as 'jquery'

1
answer

Show element and hide

I have an alerts system where the div where the alerts are is diplayed none, so when a new alert appears in my js I make a toggle to appear that alert on the screen so $("#alerts").toggle( "slow" ); How do I make the alert stay for o...
asked by 12.09.2016 / 01:16
2
answers

How to add class in jQuery to a given element?

I have a list containing "URLs" for other pages, I am having difficulty getting the URL of the current page and checking if the extracted pathname is in my list of URLs, if there is one I should add the 'active' class to the li that involves the...
asked by 13.09.2016 / 13:44
3
answers

Count elements and display an amount

I need to display a certain number of HTML elements. For example: <div class="conteudo"> <p>Primeiro parágrafo</p> <p>Segundo parágrafo</p> <p>Terceiro parágrafo</p> </div> I wanted to d...
asked by 27.01.2017 / 16:49
3
answers

How to convert numeric value to boolean?

I get a boolean value of the database, in which I want to set a checkbox dynamically. The value received is 0 or 1 . I tried to do it this way below: var status = 1; //valor recebido $("#status").prop('checked', stat...
asked by 26.01.2017 / 23:42
2
answers

Passing Parameters from Several Checkboxes to a Jquery Variable

Hello, I would like to know how I get the value field values from several selected checkboxes and save them to a jquery variable separated by commas, but without using the id field, since it is already being used in a label .     
asked by 07.10.2016 / 23:15
1
answer

Animation during ajax request

Personally I have an ajax request, only that it is taking a little bit, it only me of the return when successful or not, but during the request I do not show the user how is the procedure. As I do so, while the request is made, I show one animaç...
asked by 17.05.2017 / 20:58
2
answers

Jquery accumulating events

I have a problem in a listing, it is the following, I have a table, for each line has a link to be able to edit the line, with this, clicking this link opens a bootstrap modal with all its content coming via Ajax, and it's all right so far. And...
asked by 18.04.2016 / 21:47
1
answer

ASP.NET MVC Calculate value in a table

I am developing a register where I will have a table with some additional details that must be inserted together with the main register. But one of the columns of this table is calculated, which is where I'm having difficulty pe...
asked by 28.04.2016 / 02:05
2
answers

Search array position from a given term without using the 'inArray'

In a given method, from my input, when typing "me" it checks if the fruit exists in this array: ['banana', 'melao', 'uva', 'melancia'] In this case, bring me (position 1 - melao and position 3 - watermelon). I've tried using inArray...
asked by 21.03.2016 / 15:57
3
answers

Multiply row

Personnel how can I multiply the total value of the row being that I want to multiply value by value of each line var bloco1 = $("table tr").find("td").eq(0).val(); var bloco2 = $("table tr").find("td").eq(1).val(); var bloco3 = $("tab...
asked by 18.03.2016 / 13:01