I want to add clicked time to form for each item which is clicked.
This the original submit form:
Array ( [product_data] => Array ( [category_ids] => Array ( [0] => 15 [1] => 14 ))
)
I am trying to change this form like that below:
Array ( [product_data] => Array ( [category_ids] => Array[0] => Array ( [time] => 464798744 [id] => 15 ) [1] => Array ( [time] => 898645323 [id] => 14 ) )
)
I tried open an input and populate it with current time for each item but never success to send it as form instead of old form.
any idea?