I don't know how many options you plan to have, but if your options are limited, you might consider putting all of the options data in hidden inputs as JSON. Put the JSON in the value with PHP's json_encode function. Let javascript use the JSON by using JSON.parse. I do it often, and it works well.