简体   繁体   中英

Using Semantic UI with asp.net webforms

I am trying to integrate Semantic UI in my existing Asp.net webforms project.Everything loads well and theres no such error in console.I am trying to use the "ui dropdown"..but cant see the dropdown like in examples.

Here is my references

 <head runat="server"> <title></title> <script src="Scripts/jquery-1.10.2.min.js" type="text/javascript"></script> <link href="semantic/dist/semantic.min.css" rel="stylesheet" /> <script src="semantic/dist/semantic.min.js" type="text/javascript"></script> </head> 

And the asp.net code

  <asp:DropDownList runat="server" ID="OfficeDropDown" CssClass="ui dropdown" /> 

Cant see the curvy dropdown like in Semantic UI..What am i doing wrong?Help please.Searched a lot.Couldnt get the solution.

Ok got it..I forgot to bind the dropdownlist.

 $('#officeDropDown') .dropdown() ; 

worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM