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