Tag Archives: scroll

scroll to anchor from form select

Scroll to anchor from drop down form select. http://jsfiddle.net/mohamedyousef1980/99sm098e/ Can also use for each with dynamic ids as below: <div class=”row”> <div class=”container”> <h2>Select Cruise Line</h2> <div class=”jump-to-select”> <select class=”form-control” name=”listbox” id=”jumpto-listbox”> @foreach (var line in Model) {<option value=”#@line.Id”> @line.Name </option>} </select></div></div></div>   <script> // SC: scroll to anchor from drop down list $(‘#jumpto-listbox’) .on(‘change’,… Read More »