I am trying to vanish the option "10.30" in the workshop time zone when selected "Monday 13 April" I would be happy if this option is only disabled in the Work Date Date field.
& lt; Div class = "form-group" & gt; & Lt; Form action = "ksmail.php" method = "post" & gt; & Lt; Div class = "form-group" & gt; & Lt; Div class = "row" & gt; & Lt; P class = "control-blue label" & gt; Date of workshop: & lt; / P & gt; & Lt; Select name = "date" class = "finance" id = "wdate" & gt; & Lt; Option value = "11th_apr" & gt; Saturday April 11 & lt; / Options & gt; & Lt; Option value = "13th_APR" id = "dt" & gt; Monday 13 April & lt; / Options & gt; & Lt; Option value = "18th_APR" & gt; Saturday, 18 April & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "form-group" & gt; & Lt; Div class = "row" & gt; & Lt; P class = "control-blue label" & gt; Workshop time: & lt; / P & gt; & Lt; Select name = "time" category = "finance" id = "wtime" & gt; & Lt; Option value = "9am" id = "tn" & gt; 9 am & lt; / Options & gt; & Lt; Option value = "10_30am" id = "tt" & gt; 10.30am & lt; / Options & gt; & Lt; / Select & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; Div class = "row" & gt; & Lt; Input type = "submit" value = "send" class = "btn btn-default" & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt; / Form & gt; & Lt; / Div & gt;
JavaScript
$ ('# wtime'). Show (); $ ('#Wdate') Bind ('change', function (e) {if ($ ('# wdate'). Val () == "#dt") {$ ('# tt'). Hide ();}
< / Pre>css
#wtime {display: none;}
I have tried many forms, it does not do any work Sorry, I am a new nokia / moron. Any help would be greatly appreciated.
Try on this, hope it will be helpful:
$ ('# wtime'). Show (); $ ('# wdate'). ('Change' , Function (e) {if ($ (this) .val () == "13th_APR") {$ ('# tt'). Hide ();} else {$ ('# tt'). Show (); }});
No comments:
Post a Comment