Hi Rajesh,
You can find the full example of local storage script in Phonegap API Documentation.
No need to use modernizr. Just a simple query to save and retrieve the data.
Cmiiw,
Aziz
Sent from my BlackBerry®
powered by Sinyal Kuat INDOSAT
Date: Tue, 28 Feb 2012 19:15:08 -0800 (PST)
Subject: [PhoneGap] How to use Modernizr.localstorage?