JQuery

How to get the span value using jquery

We have many way to get the data from span tag, here you see two way.

$("#btnapplyevent").click(function () {
        var isValid = true;
        var GameType = $('#select2-gametype-container')[0].title;
        alert(GameType);
        alert($('#select2-gametype-container').text());
 });

Thank You

Leave a Reply

Prabhakaran Jayaraman