So I want to be able to hide all the options and then only show people who do not include is what I have done so far: How do I show everything, but how do I show values along with Hello? You can "hide" those people whose value is used by Tell that correctly Or you can not remove the option elements from all browsers (see also this). But you can remove them: Or disable them: Depends on what you want to do with them. hello_ their value includes
Hello_by ,
Hello_Hello etc. Whoever starts with
Hello _
jQuery ) .ready (function () {jQuery ("#metakeyselect" option). Hide (); jQuery ("#metakeyselect" gt; option [/]] What's here? / /] ")
Hello _ .
var hidden_options = jQuery ("#metakeyselect" option) [Value = = hello_] "). Remove ();
jQuery ("#metakeyselect> option [value ^ = hello _]"). Prop ('disabled', true);
No comments:
Post a Comment