string x = "<select><option value='2'>dfgdfh</option><option value='3'>cvncvn</option><option value='4'>cvn</option><option value='5'>dhdfh</option><option value='6'>dfhdfh</option><option selected="selected" value='7'>dfhdfh</option><option value='8'>dfgfdh</option><option value='12'>New type</option></select>"
How to get the text from the selected option?
After fixing the syntax error in your string… 🙂