Form hide and show a part.
Okay I've been messing around with this for a while but I cant get it to work.
What I want is to show a <tr> when a specific value of <select> <option> is selected.
I got this code so far:
- <script>
- (document).ready(function(){
- $(form select option[value='specified_range']).focus(){
- $(".appel").show();
- }else{
- $(".appel").hide();
- }
- );
- </script>
- <select name="walk_mode" id="walk_mode">
- <option value="freeroam">Lopen</option>
- <option value="stand">Stilstaan</option>
- <option value="specified_range">Beperkt Lopen</option></select>
When I click the last option it should display a <tr> with class="appel"
If one of the first two options is selected it should do nothing.
I'm really new to jQuery but this is something I cant get to work.