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