Chat List

Show All

  • A
  • hh
  • B
  • D
  • J
  • O
Chat with Khelesh

Online

Hi, how are you samim?8:40 AM, Today
Hi Khalid i am good tnx how about you?8:55 AM, Today
I am good too, thank you for your chat template9:00 AM, Today
You are welcome9:05 AM, Today
I am looking for your next templates9:07 AM, Today
Ok, thank you have a good day9:10 AM, Today
Bye, see you9:12 AM, Today
Hi, how are you samim?8:40 AM, Today
Hi Khalid i am good tnx how about you?8:55 AM, Today
I am good too, thank you for your chat template9:00 AM, Today
You are welcome9:05 AM, Today
I am looking for your next templates9:07 AM, Today
Ok, thank you have a good day9:10 AM, Today
Bye, see you9:12 AM, Today
Notes

Add New Nots

Notications

Show All

  • SEVER STATUS
  • KK
  • SOCIAL
  • RU
  • SEVER STATUS
  • AU
  • MO

Single select boxes

Select2 can take a regular select box like this...

Select...

Multi-select boxes

Select2 also supports multi-value select boxes. The select below is declared with the multipleattribute.

Orange
Yellow

Dropdown option groups

In HTML, <option> elements can be grouped by wrapping them with in
a<optgroup>element:

Blue

Disabling options

Select2 will correctly handle disabled options whendisabled attribute is set) and from remote srouces where the object hasdisabled: true set.

Select...

Disabling a Select2 control

Select2 will respond to the disabledattribute on<select> elements. You can also initialize Select2 withdisabled: true to get the same effect.

Select...

Orange
Yellow

Select2 With Labels

You can, and should, use a <label>with Select2, just like any other<select> element.

Container Width

The two Select2 boxes below are styled to50% and 75% width respectively to support responsive design:

Select...
Orange
Yellow

Themes

Select2 supports custom themes using thetheme option so you can style Select2 to match the rest of your application.

Select...
Orange
Yellow

Ajax (remote data)

Select2 comes with AJAX support built in, using jQuery's AJAX methods. In this example, we can search for repositories using GitHub's API:

Select...

Loading array data

You may use the data configuration option to load dropdown options from a local array.

Select...

Automatic Selection

Select2 can be configured to automatically select the currently highlighted result when the dropdown is closed by using the selectOnCloseoption:

Select...

Remain open after selection

Select2 will automatically close the dropdown when an element is selected, similar to what is done with a normal select box. You may use thecloseOnSelect option to prevent the dropdown from closing when a result is selected:

Select...

Dropdown placement

The dropdownParent option allows you to pick an alternative element for the dropdown to be appended to:

Select...

Limiting the number of selections

Select2 multi-value select boxes can set restrictions regarding the maximum number of options that can be selected. The select below is declared with themultiple attribute withmaximumSelectionLength in the select2 options.

Orange
Yellow

Dynamic option creation

In addition to a prepopulated menu of options, Select2 can dynamically create new options from text input by the user in the search box. This feature is called "tagging". To enable tagging, set thetags option totrue:

Select...

Tagging with multi-value select boxes

Tagging can also be used in multi-value select boxes. In the example below, we set themultiple="multiple" attribute on a Select2 control that also has tags: trueenabled:

Orange
Yellow

Single select placeholders

Select2 supports displaying a placeholder value using theplaceholder configuration option. The placeholder value will be displayed until a selection is made.

Select...

Multi-select placeholders

For multi-selects, you must not have an empty<option>element:

Orange
Yellow

Default selection placeholders

Alternatively, the value of theplaceholder option can be a data object representing a default selection (<option>). In this case theid of the data object should match thevalue of the corresponding default selection.

Select...

Customizing how results are matched

When users filter down the results by entering search terms into the search box, Select2 uses an internal "matcher" to match search terms to results. You may customize the way that Select2 matches search terms by specifying a callback for the matcherconfiguration option.

Select...

Matching grouped options

Only first-level objects will be passed in to thematcher callback. If you are working with nested data, you must iterate through thechildren array and match them individually. This allows for more advanced matching when working with nested objects, allowing you to handle them however you want.

Blue

Minumum search term length

You may set a minimum search term length by using theminimumInputLength option:

Select...

Maximum search term length

You may limit the maximum length of search terms by using themaximumInputLength option:

Select...

Programmatically add new options

New options can be added to a Select2 control programmatically by creating a new JavascriptOption object and appending it to the control:

Select...

Create if not exists

You can use .find to select the option if it already exists, and create it otherwise:

Select...

Using jQuery selector

Selected items can also be accessed via the:selected jQuery selector:

Select...

RTL support

Select2 will work on RTL websites if thedir attribute is set on the<select>or any parents of it. You can also initialize Select2 with the dir: "rtl"configuration option.

Select...

Destroying the Select2 control

The destroy method will remove the Select2 widget from the target element. It will revert back to a standard selectcontrol:

Select...

Opening the dropdown

Select2 will trigger a few different events when different actions are taken using the component, allowing you to add custom hooks and perform actions.

Select...

Opening/Closing the dropdown

Select2 will trigger a few different events when different actions are taken using the component, allowing you to add custom hooks and perform actions.

Select...

Select2 methods

Select2 has several built-in methods that allow programmatic control of the component.


Strawberry

Select2 methods

Select2 has several built-in methods that allow programmatic control of the component.


Orange
Yellow