javascript - Show DropDown based on selection -


I created a basic drop down list for the operator I was thinking that the basis of selection There is a way to display dropdown items on. If I have an integer than the operator dropdown in the category drop down, then only the integer will show related items.

Thanks

should you do it?

Javscript:

$ (document) .ready (function () {$ (document) .on ('change', '. Category', function () { Var val = $ (this) .val (). ToLowerCase (); $ ('operator option'). Skip (); $ ('operator option.' + Val) .show (); $ ('operator operator ( 'Selected', 'selected'). Change ();});});

HTML:

  select class = "category "& Gt; Option val =" value "> gt; value & lt; / option & gt; option val =" weight "> weight 

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -