css - jquery chosen select field is displayed wrong -
i'm trying use jquery-chosen plugin on simple select code
<select class="chosen-select"> <option value="a">a</option> <option value="b">b</option> <option value="c">c</option> </select>
turn on in js file
$(document).ready(function() { $(".chosen-select").chosen({no_results_text: "oops, nothing found!", allow_single_deselect: true}) });
and select field looks different fields on jquery-chosen site examples:
what doing wrong? not adding css field?
looks referencing css file script, needs css link:
<link rel="stylesheet" href="[path file]chosen.css" />
or
<link rel="stylesheet" href="[path file]chosen.min.css" />
point reference css or min.css file is. based on comment might
<link rel="stylesheet" href="/static/chosen.css" />
Comments
Post a Comment