You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function selectChecked() {
var selected = new Array();
var chk_arr = document.getElementsByName("checkbox[]");
var chklength = chk_arr.length;
for(k=0;k< chklength;k++)
{
if (chk_arr[k].checked == true)
selected.push(chk_arr[k].value);
}
$.jStorage.set("links", selected);
}
</script>
And have this error:
Cannot call method 'set' of undefined
I even try change selected to "teststring" and I have the same error
The text was updated successfully, but these errors were encountered:
Are you sure you have jStorage loaded on your page since $.jStorage can be undefined only if it not loaded on the page. Additionally I'd suggest you to upgrade Prototype version.
Hi,
I have this code:
<script src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script> <script src="jstorage.js"></script>function selectChecked() {
var selected = new Array();
var chk_arr = document.getElementsByName("checkbox[]");
var chklength = chk_arr.length;
for(k=0;k< chklength;k++)
{
if (chk_arr[k].checked == true)
selected.push(chk_arr[k].value);
}
$.jStorage.set("links", selected);
}
</script>
And have this error:
Cannot call method 'set' of undefined
I even try change selected to "teststring" and I have the same error
The text was updated successfully, but these errors were encountered: