returns the currently selected ID
as_array | boolean | true, to force the return value to be an array |
string|number | currently selected id |
var id = myDataView.getSelected();
By using the "as_array" parameter you will always receive an array as the result of the method, which can simplify further processing.
Back to top