Zelxin705

Selected attribute for graphic

Discussion created by Zelxin705 on Nov 22, 2013
Hi,

I'm trying to find out if a graphic is selected selected on my map.

I came across this in the API
https://developers.arcgis.com/en/javascript/jsapi/graphic-amd.html
data-selected

but data-selected never seems to appear in the object even when selected? Is there some special way to access this that I am missing
I've tried
graphic.attributes['data-selected'];
graphic['data-selected'];
graphic.attr('data-selected');

Outcomes