Skip to content
Advertisement

Why The Select Option Didn’t Showing Number?

i have some problems. Where my stock produk size is “100-199” The Select Option just showing this :

enter image description here

If in my product have stock is 1-99 and 200-999 i didn’t get this error. The select option is fine and showing a number. In my case stok s and stok m the select option showing the number.

This my db :

enter image description here

This is my Controller :

JavaScript

This is my Models :

JavaScript

This is view code :

JavaScript

This is JavaScript Code :

JavaScript

When i’m use var limbuys so var i = limbuys; i get the normal way, and if i change with var limbuy so var i = limbuy; and get data number from database minorder i’m find this problem. And the problem just if example “in stok L just have 100-199 stock” i get this error(look picture). and if i pick size s (max stock 80) or size m (max stock 250) and im using limbuy its fine, why?

I’m using codeigniter with bootsrap. Thanks for help

Advertisement

Answer

This is happen because your limbuy and your end is a string

you can try use

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement