First you need to have a value on the option like:
<option id="option1" value='1'>option 1</option>
I've made you a jQuery demo, see snippet below:
$('.btn').on('click', function(){
var result = $("#result").val();
console.log(result);
//I've commented this line just for demonstrating purpose
//window.location.href = "deleteresult.php?did=" + result;
})
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select id="result">
<option id="option1" value='1'>option 1</option>
<option id="option2" value='2'>option 2</option>
<option id="option3" value='3'>option 3</option>
</select>
<a href="#" class="btn dropdown-toggle">Delete </a>
A Javascript alternative would be to use addEventListener instead of the deprecated onclick:
document.getElementById("btn").addEventListener("click", function(){
var select = document.getElementById("result");
var selectedOption = select.options[select.selectedIndex].value;
console.log(selectedOption);
//I've commented this line just for demonstrating purpose
//window.location.href="deleteresult.php?did=" + selectedOption;
});
<select id="result">
<option id="option1" value='1'>option 1</option>
<option id="option2" value='2'>option 2</option>
<option id="option3" value='3'>option 3</option>
</select>
<a href="#" class="btn dropdown-toggle" id='btn'>Delete </a>
Other options would be to use either Javascript's localStorage() or PHP's $_SESSION
And on the page you will be redirected you can get the value used as a $_GET parameter using:
echo $_GET['did'];