Hi,
I'm trying to figure out what would be the best way to create a "ADD TO FAVORITES" function for a Jquery mobile app.
I looked into HTML5 local storage however most of the examples I have found only work with only one value.
$("#add_favourites").click(function(){
var tit_stor = document.getElementById("titlee").innerHTML;
if (typeof(Storage) !== "undefined") {
localStorage.setItem(id, tit_stor);
} else {
document.getElementById("result").innerHTML = "Sorry, your browser does not support Web Storage...";
}
});
Thanks and regards
Mohit Kumar