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