Hi,
I have a sharepoint list where in I have a list and a dropdown within the list.
I have written a Jquery to get selected text from the dropdown but its not working. Below is the script.
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script><script language="javascript"
type="text/javascript">
function PreSaveAction() {
var a = $('select[title="Type Of Travel"] option:selected').text();
var e = $('select[title="Levels"] option:selected').text();
alert(a);
alert(e);
}
</script>
Regards, Shreyas R S