how to set option value in fstdropdown using ajax

JavaScript
fstdropdown.rebind();
Source

Also in JavaScript: