is it possible to access Backbone.js model's attribute or function in javascript? If possible how to do that??
My model :
var TimeZone = Backbone.Model.extend({ defaults:{ timeZoneID : 'EST5EDT', timeZoneShortForm : "ET", timeZoneLongForm : "Eastern Time", } });
Javascript
getTimeZoneId :function(TimeZone) { //here for given TimeZone model.. i have to acess the timeZoneID }
Now i have to access timeZoneID.. How it is possible?