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