Вот код javascript /jquery: < /p>
var query = {
'action' : 'save-attachment-order',
'nonce' : '8cb16e3927',
'post_id' : 89,
}
< /code>
Я хочу получить идентификаторы LI и сделать это этим варсом < /p>
var query = {
'action' : 'save-attachment-order',
'nonce' : '8cb16e3927',
'post_id' : 89,
'attachments[183]' : 2,
'attachments[196]' : 3,
'attachments[145]' : 1,
'attachments[545]' : 4
}
Подробнее здесь: https://stackoverflow.com/questions/152 ... ing-jquery