update data attribute post