Pegando o Nome da Option jQuery

Para pegar o nome da option do select, basta utilizar o seguinte codigo abaixo

$('#local').find('option').filter(':selected').text();

Picotando:

$(‘#local’) – Pega o elemento que você quer

.find(‘option’) – Pega todos os options dentro do elemento

.find(‘option’) – Pega todos os options dentro do elemento

.filter(‘:selected’) – Pega o elemento que ta selecionado

.text() – returna o valor

Good Bless !

115 thoughts on “Pegando o Nome da Option jQuery

  1. Isotretinoin amnesteem skin health medicine on line Viagra Generika Frau Veterinary Amoxicillin Dosage [url=http://leviplus.com]levitra online order[/url] Com Kamagra In Linea

  2. Undeniably believe that that you said. Your favourite reason appeared to be at the net
    the simplest thing to consider of. I say to you, I definitely get irked while other folks
    consider concerns that they just do not understand about.
    You controlled to hit the nail upon the top and defined out the entire thing without having side-effects , other people could take
    a signal. Will probably be again to get more.
    Thank you

  3. hey there and thank you for your information – I have definitely picked up
    anything new from right here. I did however expertise
    several technical points using this site, as
    I experienced to reload the website many times previous to I could get it to load correctly.
    I had been wondering if your hosting is OK? Not that I’m complaining, but slow loading instances times will very frequently
    affect your placement in google and could damage your
    high quality score if ads and marketing with Adwords.
    Anyway I’m adding this RSS to my email and could
    look out for a lot more of your respective interesting
    content. Make sure you update this again very soon.

  4. Nice post. I used to be checking constantly this weblog and I am impressed!
    Very helpful info specially the ultimate
    part 🙂 I care for such information a lot. I used to be looking for this particular info for
    a very lengthy time. Thanks and best of luck.

  5. After I originally left a comment I appear to have clicked on the -Notify me when new comments are added- checkbox and now each
    time a comment is added I get four emails with the same comment.

    Perhaps there is a means you can remove me from that service?
    Appreciate it!

  6. I’m curious to find out what blog platform you’re
    utilizing? I’m experiencing some small security problems with my latest
    website and I would like to find something more
    secure. Do you have any recommendations?

  7. I am not sure where you’re getting your information, but great topic.

    I needs to spend some time learning more or understanding
    more. Thanks for fantastic information I was looking for this information for my mission.

  8. I was suggested this website by means of my cousin. I’m no longer certain whether this publish
    is written through him as nobody else realize such distinct about my difficulty.
    You’re wonderful! Thank you!

  9. Since the admin of this web site is working, no uncertainty very shortly it will
    be well-known, due to its feature contents.

  10. Wonderful work! This is the type of information that should be shared across the internet.
    Shame on Google for no longer positioning this submit higher!
    Come on over and talk over with my website . Thank you =)

  11. Thanks for the marvelous posting! I truly enjoyed
    reading it, you might be a great author. I will ensure that I bookmark your blog and definitely will come back
    very soon. I want to encourage one to continue your great work, have
    a nice afternoon!

  12. Magnificent site. A lot of useful information here. I’m sending it to some pals ans additionally sharing
    in delicious. And of course, thank you on your effort!

  13. Somebody necessarily help to make critically articles I might state.
    That is the first time I frequented your web page and thus far?
    I surprised with the research you made to make this particular submit extraordinary.
    Magnificent job!

  14. Can I simply say what a relief to uncover an individual who genuinely understands what they are
    talking about on the internet. You actually realize how
    to bring an issue to light and make it important.
    More people must check this out and understand this side of your story.
    It’s surprising you’re not more popular given that you definitely possess the gift.

  15. Do you mind if I quote a few of your articles as long as I provide credit
    and sources back to your site? My blog is in the very same area of interest as
    yours and my visitors would genuinely benefit from some of the information you provide here.
    Please let me know if this alright with you.

    Regards!

  16. Its like you read my mind! You appear to know a lot
    about this, like you wrote the book in it or something. I think that you could do with some pics to
    drive the message home a little bit, but instead of that, this is wonderful blog.
    A fantastic read. I will certainly be back.

Deixe uma resposta

O seu endereço de e-mail não será publicado.