I want to grab all of my class "reserved" (there are table cells). I want to send every cell's ID via jquery $.post() into some php method. Here is my JQuery code:
cell_id = $(this).attr('id');
It works perfectly if only one cell has class reserved, but when there are more than just one - it doesn't work at all!
以上就是jquery .each() and $.post() works only for 1 element的详细内容，更多请关注web前端其它相关文章！