Hello Tiggzi Support,
I am trying to create a cookie for multiple input fields. The input fields are:
-salespersonName
-salespersonCompany
-salespersonPhone
-salespersonEmail
-salespersonTitle
I am currently trying to set the cookie for just the top field, my code is:
function setCookie(salespersonName) {
document.cookie = salespersonName=Tiggzi('AccessoryAmount').text();
+ "expires=Fri, 16 May 2025 18:40:22 GMT";
alert($.cookie(salespersonName));
}
The alert function is to make sure it is working. When I change the value of the input, I get a pop-up that says [object] [Object].
Any ideas would be much appreciated.