how to get attribute value in jquery using this code example Example: jquery add attribute $('#someid').attr('name', 'value');