Having multiple values within an

前端 未结 3 477
Happy的楠姐
Happy的楠姐 2021-01-24 10:51

I am trying to create a dropdown box where it has from 10 - 90, I want each value to stand for the numbers in between (so 10 will hold 11, 12, 13, 14.. and so on and so forth).

3条回答
  •  一生所求
    2021-01-24 11:11

    I am assuming you are retrieving this integers from the PHP source code. In that case, just store this logic somewhere in your database, php file or some sort of a config file in order to keep this logic server-sided. It is not possible to store multiple values in one option, that's the idea of an option. Or you would have to store it as a json_encode string, but I am not sure if that is what you want.

    It would safer as well to put this on your server-side, I am not sure what you are creating, but safety is always a pre.

    More about json encoding

提交回复
热议问题