Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var testx=document.getElementById("priceMatrix");
- testx.options[testx.selectedIndex].text=toAdd+"|"+cupSize;
- var myText = toAdd+"|"+cupSize;
- $('#priceMatrix').filter(function () { return $(this).html() == myText; }).prop('selected', true)
- var alertText = $("#priceMatrix option:selected").val();
- alert(alertText);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement