Skip to content

How to reinitialize the multiSelect to select box #337

Description

@ranjithphptech

$(".subModules").html(options1);
$(".subModules").multiSelect()
after adding more than one option via ajax , added option not showing how can reinitialize the select box

for example
working correctly
roleMap.setSubModules(); //setting option to the $(".subModules") element
$(".subModules").multiSelect({
selectableHeader: "

Avilable
",
selectionHeader: "
Selected
",
afterInit:function() {

			},
			afterSelect: function(values) {
				alert("Select value: " + values);
			},
			afterDeselect: function(values) {
				alert("Deselect value: " + values);
			}
		});

** following code not working correctly**

$(".subModules").multiSelect({
selectableHeader: "

Avilable
",
selectionHeader: "
Selected
",
afterInit:function() {

			},
			afterSelect: function(values) {
				alert("Select value: " + values);
			},
			afterDeselect: function(values) {
				alert("Deselect value: " + values);
			}
		});

roleMap.setSubModules(); //setting option to the $(".subModules") element

how can fix this

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions