I have created a form variable named customerData like this{ data:
"faraz", cPage: 1, tPages: 3, showData: function() {alert('in show
data');}, showPager: function() {alert('in show pager');}};Now i am
trying to access the cPage from onclick of a button with this
codeapp.alert(customerData.cPage);but its giving me undefiend.How to
access the cPage, tPages values?