that won't fix the issue as there is a semi colon, also the + with the single quote on the right is fine.
Try this. Also think about readability, if it's hard to read, it's hard to understand.
document.getElementById("myid").value = (parseInt(localStorage["myid"] || "0", 10) + 1);
localStorage["myid"] = document.getElementById("myid").value;
$('#left_bar .cart-info').append('<div>' + localStorage["myid"] + '<input id="myid" type="text" name="itemquantity[]" value="1"/></div>');
stbuchok
Practically a Posting Shark
876 posts since May 2011
Reputation Points: 138
Solved Threads: 124
Skill Endorsements: 2