var str = "<input type='button' id='f10' width='80' height='50' valule='' />"; $(str).attr('width'); $(str).attr('height');