Skip to content
Advertisement

Tag: cart

JS doesn’t change the value of input

I’m writing cart-box that will change the quantity of products in cart. It works only if I have one box (one product) in cart, but when I have more products in cart it changes the value of the first input only. This is my html code (earlier in the code I’ve got loop for my products): And this is JS

Is localstorage data encryption necessary?

I am making an add to cart system first time and instead of using php , I am using javascript i.e in client side. will it be safe ?? or if it is not, then what should I do to secure the data in localstorge? Answer Yes, it might be, in your case. As users might be able to manipulate

Advertisement