hey everyone,

I have;

<form method="post" action="search.php">
<select name="country" class="dropdownselect" >

<option value="">Select Country</option>

<option value="Afghanistan" selected="selected">Afghanistan</option>
<option value="Albania" selected="selected">Albania</option>
<option value="Algeria" selected="selected">Algeria</option>
<option value="American Samoa" selected="selected">American Samoa</option>


And then Im doing SQL query to display results from database.

I need to somehow leave selected option selected after someones preform search and pages refresh.

Im planing to use HTML5 storage, something like this;


localStorage.setItem('country', $('select[name=country]').val());


But I dont know how to display it correctly,

Can someone help?

Thanks in advance!