jquery-select2 Questions
1
Solved
Am trying to use Select2 to load remote data using ajax / json but i keep getting an error as:
TypeError: data.results is undefined
My code is :
$('#tags').select2({
ajax: {
url: 'http://lo...
Unveil asked 29/11, 2013 at 11:54
1
I have this code and I do not allow to add new tags just picks those from the ajax .
<script>
$(document).ready(function() {
$.ajax({
url: "ajax/profile.php",
type: "POST",
dataType: "js...
Calendra asked 10/9, 2013 at 14:51
3
Solved
Take a look at the following select:
<select>
<optgroup label="A">
<option value="">1</option>
<option value="">2</option>
<option value="">3</option&g...
Spinoff asked 26/9, 2013 at 19:41
2
Solved
I have a use case where I allow people to type values into the text box of the select2 plugin that do not appear in the select list.
In one case I am providing validation and do not submit unless ...
Lidialidice asked 13/5, 2013 at 1:6
1
Hi I am looking to use select 2 and what I have seen so far it looks good. I am trying to do one thing though.
I am looking to get my data with an ajax call to a json file - there is an example on...
Bruce asked 30/5, 2013 at 1:18
2
I use select2 plugin in my AngularJS application for displaying list of some entities (tags). This is my template's part:
select.ddlTags(ui-select2="select2Options", multiple, ng-model="link.tags"...
Gyniatrics asked 10/7, 2013 at 13:41
1
Solved
I load values for select2 like the following way.
Declare the Type
var AdjustmentType = Backbone.Model.extend({
url : Hexgen.getContextPath("/referencedata/adjustmenttype")
});
create instan...
Nga asked 8/7, 2013 at 9:29
1
I have a script called listofValues.php, which queries a database and returns JSON format values.
What I need is to pass these values to the select2 data member. I need it to load once.
I don't ...
Figureground asked 28/8, 2013 at 14:21
3
Solved
I have been trying to get my angular ui select2 directive to initialize and have been unable to get it to work with option groups.
The Code:
function testCtrl1($scope)
{
$scope.selectedOptions ...
Flamethrower asked 20/4, 2013 at 18:23
2
Solved
Is it possible somehow to group results in a Select2 component when it's not using <select> tag, but <input type="hidden">, and results are provided as "data" option in configuration ob...
Unclassical asked 12/7, 2013 at 9:0
2
Solved
The project uses marionette-rails, backbone-on-rails, select2-rails and this port to BackboneForms to provide a multiselect form field. The select options are available to the user. They are retrie...
Fiord asked 13/7, 2013 at 21:11
1
I am trying to automate the select2 search box in selenium IDE.
I got it to open and also typed the search keyword I am searching for.However even though I have the code in place for showing result...
Abrahan asked 18/4, 2013 at 18:59
2
Solved
I am working with an app with Active Admin and needed to select multiple values from a select input, I have added the Select2 gem which adds all the relevant the JS and CSS with no issues but for s...
Alcestis asked 30/5, 2013 at 15:11
2
Solved
I am having trouble getting the results to show up in the Select2 using AJAX.
Here is my code:
$(document).ready(function() {
$("#producto").select2({
placeholder: 'Select a product',
formatRes...
Hangbird asked 16/6, 2013 at 20:2
1
How set in the drop-down list item selected by the user?
Scenario:
1. User not enter all required values in form
2. Click sent.
3. Page is refresh and value in dropdown list is not selected. How ...
Accouchement asked 30/5, 2013 at 15:43
1
Solved
I am generating my HTML tags server-side (asp.net mvc4).
I would like to pre-set the value and the description of my HIDDEN field avoiding the ajax call to fetch the data in the initSelection funct...
Familial asked 16/5, 2013 at 16:50
1
Solved
I am using the excellent select2 jquery control.
I am trying to mimic a 3 cell table display layout, using CSS div layout.
When the selected is larger than the current select2 width, the control no...
Angiosperm asked 13/5, 2013 at 23:35
1
I am using tag supporting of Select2 for my tag editor, I know you can add a non-existed tag by enter tag and press key "tab"
My question is: I don't want any tags contain space, such as "space ta...
Alfi asked 5/5, 2013 at 19:3
4
I've got an interesting issue occurring which I cannot seem to resolve using Select2 and FullCalendar.
Upon clicking an event, I am trying to pre-select the Select2 dropdown with what's in the dat...
Derisive asked 24/4, 2013 at 1:28
1
Solved
I have a form with a couple of selects inside.
I'm applying the select2 jquery plugin over those selects like this:
$("select.company_select, select.positions_select").select2();
The select's wo...
Overfly asked 17/4, 2013 at 13:56
2
Solved
I'm using select2 in place of search box.
Here i'm using to load countries values like this
$("#countries").select2({
multiple: true,
tags:["India", "Japan", "Australia","Singapore"],
tokenSep...
Arianearianie asked 15/4, 2013 at 8:9
0
Select2 eats the Page Up and Page Down key events to prevent the page from scrolling, but I want the active list to scroll when these keys are pressed.
The challenge is scrolling the list by the c...
Nebulosity asked 11/4, 2013 at 13:34
2
Solved
I'm trying to use the createSearchChoice function to allow users to enter their own choice when the default list won't suffice. When I try to use this function on a <select> element, I get th...
Hermeneutics asked 26/7, 2012 at 17:21
1
I use jQuery select2 plugin in order to retrieve postcodes using the provided ajax callback function as follows:
$(document).ready(function() {
$("#postcodes").select2({
placeholder : "Search fo...
Lenten asked 2/3, 2013 at 12:46
3
Solved
I need help writing the jquery/ajax to fill a Select2 dropdown box.
For those who don't know what Select2 is, it is a javascript extension to provide Twitter Bootstrap looks and search / type-ahea...
Clymer asked 13/2, 2013 at 12:31
© 2022 - 2024 — McMap. All rights reserved.