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