I have implemented a semantic UI dropdown using the code below:
$('.ui.dropdown') .dropdown() ;
<html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" /> <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script> </head> <body> <select class="ui dropdown"> <option value="">Select option</option> <option value="1">Option 1</option> <option value="2">Option 2</option> <option value="3">Option 3</option> <option value="4">Option 4</option> <option value="5">Option 5</option> <option value="6">Option 6</option> <option value="new">+Add new</option> </select> </body> </html>
I am facing an issue where I need to give a fixed position to the last option. The desired outcome is for the '+Add New' option to stay in a fixed position and not scroll along with the other options. I want this functionality to look similar to the example shown in this image.