Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. var testx=document.getElementById("priceMatrix");
  2. testx.options[testx.selectedIndex].text=toAdd+"|"+cupSize;
  3.  
  4. var myText = toAdd+"|"+cupSize;
  5. $('#priceMatrix').filter(function () { return $(this).html() == myText; }).prop('selected', true)
  6. var alertText = $("#priceMatrix option:selected").val();
  7. alert(alertText);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement