jquery add attribute to each element code example Example: jquery add attribute $('#someid').attr('name', 'value');