jquery remember option selected -


how use jquery remember option user has selected when post itself? (selected="selected")

<form action="abc.php" method="post"> <select id="dropdown">     <option value="a">a</option>     <option value="b">b</option>     <option value="c">c</option> </select> <input type="submit" /> </form> 

if really want javascript you'll have use cookies. can read here. there cookie management plugins jquery, google along lines of jquery cookie plugin.

otherwise, if you're returning form because fields not filled or similar problem suggest using php (as see you're using it) set selected values.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -