Questions tagged as 'jquery'

2
answers

What are the differences between the find () and eq () selectors?

I'm running some tests to understand what is the difference between simple use of a selector eq() and find() , so that you can select the first row of a table for example. Example 1: $('table tbody tr:first') // ok $('table...
asked by 15.10.2015 / 18:53
4
answers

Function to expand list

I created a "dictionary" from A to Z, where when I want to see what's in the letter A, I click on it. This is beauty. So I do not have to click one by one to find some meaning, I would like to put a function to expand everything from A to Z. I u...
asked by 06.02.2014 / 13:06
1
answer

Various Books for Author

Recently, I asked a question about my problem, but it was kind of difficult to understand, here I will try to summarize my problem. I'm using ASP.NET MVC. I have 2 tables: Autores and Livros , where 1 Autor has many...
asked by 04.12.2015 / 13:08
4
answers

How to check if an input has a String?

I need to check if the user typed a string in a field where they can only receive an Integer, I made the sequential code and when I click the button, it always returns the alert regardless of whether I write an integer or a string, what's wrong?...
asked by 02.03.2015 / 18:41
4
answers

Fade color transitions in one word

I have a code that is doing color transitions, it has to leave a fade in this transition, that is, so it does not change so "dry", I'm doing with JS , is there any CSS that does it? Anyway, I wanted the fade to be executed in color...
asked by 06.04.2015 / 14:50
2
answers

Get Id and move to another function on the click button

Galera, I have the following problem, I have a table and every record I have a link. By clicking this link I get the ID as follows and call a modal. <script> $(document).on("click", "a", function(){ if ($(this).hasClass("cliqu...
asked by 22.11.2016 / 14:45
1
answer

How to generate a graph with a curve similar to "sine" in jquery flot?

Friends, I'm using the flot for a project of ECG (electrocardiogram) simulation , and I was faced with a problem, which I think is more of mathematics than programming > ... So sorry if I'm explaining bad. Good, my problem is to make th...
asked by 21.11.2016 / 02:01
1
answer

What are the advantages of passing a function on the jQuery "html" function?

I discovered by accident these days ago that in jQuery it is possible to pass a callback function to the html function. See: $(function () { $('body').html(function () { return [1, 2, 3, 4, 5]; }); }); &l...
asked by 26.11.2015 / 19:57
2
answers

How to not serialize a given element type with jQuery

I have a form and I do not want to "serialize" the input's type of checkbox , so I tried some options such as below: var form = $('#service-item-form :not(:input[type="checkbox"])').serialize(); But unfortunately it does not work! I would...
asked by 19.11.2015 / 16:51
1
answer

Know which button was clicked

Friends, I have 4 buttons type <input tupe="button"> , each one has a different class because they are formatted in different ways. Both buttons have the same action, with different values only. I would like to know how to get these...
asked by 18.12.2015 / 12:53