Hi lementree ,
Thank you for your reply
It works
Also i have used below
var aaaa=nodes[0].url;
which gives me path which i then manipulate and used as per my requirment
So for others who are reading this post below are two ways to get NodeRef from nodes array.
var aaaa=nodes[0].url;
var bbb=nodes[0].nodeRef
both of this gives different OP use and custamize as per your need.
lementree , Thanks again for valuable feedback.
Thanks and Regards
Aditya C Chaudhari