How To Get Id


I have an ajax form like above. How to get IDs?

Because I want it change to this:


So I want to put IDs as array key.

Is this in a loop of category id's? Would need more info on the context of this code. Generally the current category id is {$category_id} but this is sometime short-handed to something different like {$catid} or similar....

Look at the template code that generates this id


You'll see something like


Whatever it is is what you will probably want for your id.