Hi I am trying to get all the possible options of a <select> whose name is wpv-collection. Unfortunately I am not even able to get all the values to iterate through them. I am getting an empty json.
jQuery(document).ready(function($){
var collectionsOriginaldropdown = document.getElementsByName('wpv-collection');
window.alert(JSON.stringify(collectionsOriginaldropdown));
});