jquery-chosen

Chaining selects with Chosen

做~自己de王妃 提交于 2019-12-07 07:32:48
问题 I'm trying to chain selects with Chosen and Chained but I'm not sure if I'm implementing .chosen().change() correctly or if the error I'm getting is a bug. Here's what I've got: <select id="Inputfield_date" name="date" data-placeholder="Select event date"> <option value=""></option> <option value="WA">WA</option> <option value="QLD">QLD</option> <option value="VIC">VIC</option> <option value="NSW">NSW</option> <option value="SA">SA</option> </select> <select id="Inputfield_code" name="code"

Chosen dropdown list not working with Modal

夙愿已清 提交于 2019-12-07 05:32:14
问题 I am trying to get a jQuery Chosen select / dropdown list to work in a Bootbox modal. I have almost the same exact code working on a standard HTML page, so I thought it would be straight forward to just pop my list into a modal. I generate my divs and select objects in the modal, and then after it is "shown", I call Chosen: div.on("shown", function() { $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true}); myApp.init(); }); After this, Chosen seems to be

placeholder text for chosen plugin for single select not working

て烟熏妆下的殇ゞ 提交于 2019-12-06 17:13:41
问题 I have the chosen plugin for single select implemented in my code. I am trying to add the Placeholder text for the search boxes but I am not able to. I have tried the following things: <select id="search_pi" name="search_pi" type="text" class="chosen-select" style="width:450px;" onchange="this.form.submit()" > <option value="">Search Project/Initiative...</option> <?php include "../includes/search_dropdown.php"; foreach($proj_ini_Array as $qa){ echo "<option value = \"$qa\">$qa</option>"; } ?

Chosen's “Multiple Select”

谁说我不能喝 提交于 2019-12-06 04:19:03
问题 I have just discovered Chosen. The library is somewhat large, especially that I am only interested in the "Multiple Select" feature. Is there a way to build a slimer Chosen just for "Multiple Select"? 回答1: Do you mean the facebook like tab completion multiple select type feature? If so ... there are a number of tutorials on line for writing your own. The only way I can imagine you can 'slim down' Chosen is not to! I took a look at the source and it appears to me that the 'multi select' aspect

How to clone a select element of chosen plugin

▼魔方 西西 提交于 2019-12-06 01:18:47
I use the Chosen Plugin for jQuery (found here: http://harvesthq.github.com/chosen/ ). It adds extra functionality to select HTML elements. I wanted to clone a div that contains a select element and increment all the id. The problem is that the clone is ok but the select event apply to the source and not to the clone. <div id="smallConfig"> <div id="MainConfig_1"> <select data-placeholder="Choose a country" name="country_1" id="country_1" class="chzn-select"> <option value="" /> <option value="Afghanistan">Allemagne</option> <option value="Afghanistan">Belgique</option> </select> <input style=

ajaxChosen plugin will not work

a 夏天 提交于 2019-12-05 18:23:19
I've been tinkering all afternoon with ajaxChosen, because I love Chosen, but my option value sets are getting too large. I've also experimented with select2, but it's just too darn slow. http://harvesthq.github.io/chosen/ https://github.com/meltingice/ajax-chosen So, I've got the newest version of chosen (1.1.0), and the latest version of ajaxChosen. I initialize ajaxChosen as follows: $("#add_people").ajaxChosen({ type: 'GET', minTermLength: 3, afterTypeDelay: 300, dataType: 'json', url: 'http://cmcrm.chocolata.be/content/people.php?action=list_options' }, function (data) { var results = [];

Chaining selects with Chosen

岁酱吖の 提交于 2019-12-05 09:40:00
I'm trying to chain selects with Chosen and Chained but I'm not sure if I'm implementing .chosen().change() correctly or if the error I'm getting is a bug. Here's what I've got: <select id="Inputfield_date" name="date" data-placeholder="Select event date"> <option value=""></option> <option value="WA">WA</option> <option value="QLD">QLD</option> <option value="VIC">VIC</option> <option value="NSW">NSW</option> <option value="SA">SA</option> </select> <select id="Inputfield_code" name="code" data-placeholder="Response code"> <option value=""></option> <option value="601" class="WA">601</option>

Chosen dropdown list not working with Modal

邮差的信 提交于 2019-12-05 08:36:32
I am trying to get a jQuery Chosen select / dropdown list to work in a Bootbox modal. I have almost the same exact code working on a standard HTML page, so I thought it would be straight forward to just pop my list into a modal. I generate my divs and select objects in the modal, and then after it is "shown", I call Chosen: div.on("shown", function() { $(".chzn-select").chosen(); $(".chzn-select-deselect").chosen({allow_single_deselect:true}); myApp.init(); }); After this, Chosen seems to be broken. The select items are grayed out--I cannot click them. Inside myApp.init(), I populate the

Required Field Validator not working for JQuery chosen drop down list

戏子无情 提交于 2019-12-05 07:20:56
问题 I am using JQuery Choosen for my DropDownList but the required validator for that dropdown is not working . Following is my code .Please guide where i am wrong. Chosen plugin included in the form $(".chosen-select").chosen(); DropDownList code <li> @Html.LabelFor(m => m.DepartmentId) @Html.DropDownListFor(x => x.DepartmentId, (ViewBag.DepartmentsList) as IEnumerable<SelectListItem>, "-- Select an Option --",new { @class = "chosen-select", @style = "width:312px; height:31px;" }) @Html

jQuery Chosen not firing onchange event when value is changed through JS

大城市里の小女人 提交于 2019-12-05 03:38:41
JSFiddle I've set up a select with 3 option s (1 blank) in the fiddle. When I switch from foo to bar manually, the change listener fires normally. Now if I reset the select through JS with the code posted in some answers here , the change event does not fire for the newly selected blank option, furthermore, if I select the option which was selected before clicking in the reset button the onchange event won't fire either. I'm sure the select 's value is being changed with the function above, which can be seen in this fiddle , but the select 's onchange event simply doesn't fire. I've also tried