Set Options and select 1 option

 

Client Code:

<a href="javascript: void(0);" onclick=" new RSPA.Execute('MyClass.setOptions()')"> Set Options and select 1 option</a>

Server Code

$options = array(
"11"
=>"Hello",
"21"=>"Select",
"31"=>"Option3"
);

$this->select1->options = $options;
$this->select1->addtoSelection("21");
$this->select1->disabled = true;