Here is a very simple, yet flexible, custom drop-down selection control. Very lightweight JavaScript and all the needed options. You can also register to be notified of a selection and have it pass you a HTML "data-" tag value. You'll need jQuery and Bootstrap.
Note: You write your use normal Bootstrap 4 drop-down menu code, then just create an instance of the plugin, and wah-lah! Very nice.
Give it a whirl on on JsFiddle.
Just some random development ramblings mostly related to the Microsoft .NET platform.
Thursday, February 22, 2018
Subscribe to:
Posts (Atom)
Can't RDP? How to enable / disable virtual machine firewall for Azure VM
Oh no! I accidentally blocked the RDP port on an Azure virtual machine which resulted in not being able to log into the VM anymore. I did ...
-
Don't want Office 2007 installed on your web server to access Excel 2007 content? Here is a Visual Studio C# solution that demonstrates ...
-
I finally found a good algorithm to validate a file path (had to fix two bugs in it though). I use this static method in Windows Forms when...
