Wednesday 10 June 2015

How to get all options of a select using jQuery?

here is an example code!
$("#ID option").each(function () {
                $(this).prop('selected', true);
            });

ID=> tour item id.

No comments:

Post a Comment