c# - extending bootstrap select -
i want use bootstrap framework along http://silviomoreto.github.io/bootstrap-select/. doesnt work. below codes. please help.
<%@ page language="c#" autoeventwireup="true" codebehind="webform1.aspx.cs" inherits="final_year_project_allocation_system.silviomoreto_bootstrap_select_d4ec9bd.webform1" %> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script> <link href="bootstrap-select.css" rel="stylesheet" type="text/css" /> <link href="bootstrap-select.css" rel="stylesheet" type="text/css" /> <script src="../bootstrap/js/bootstrap.js" type="text/javascript"></script> <script src="bootstrap-select.js" type="text/javascript"></script> </head> <body> <form id="form1" runat="server" > <div> <select class="selectpicker"> <option>mustard</option> <option>ketchup</option> <option>relish</option> </select> </div> </form> </body> </html>
please help.
i don't see reference actual bootstrap.css
? need have (note order - it's important):
<link href="bootstrap.css" rel="stylesheet" type="text/css" /> <link href="bootstrap-select.css" rel="stylesheet" type="text/css" />
then js
<script src="../bootstrap/js/bootstrap.js" type="text/javascript"></script> <script src="../bootstrap/js/bootstrap-select.js" type="text/javascript"></script>
make sure path correct of course.
edit
i'm pretty sure boostrap.js has dependency on jquery - make sure include (before bootsrap.js).
edit 2
i suspect paths not correct. if path javascript:
"../bootstrap/js/bootstrap.js"
then path css (assuming dropped bootstrap as-is , didn't place in different folder):
"../bootstrap/css/bootstrap.css"
Comments
Post a Comment