how set and get value of id attribute in jquery code example Example: jquery add attribute $('#someid').attr('name', 'value');