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