IE 7 does not like jquery('<button/>').attr('type','button')
- by salmane
I am trying to create a button using jquery.
I use the following code
jquery('<button/>', {type:'button'}).text(name)
However this works in Safari , FF IE8 but not IE7
i tried to use the attr function :
jquery('<button/>').attr('type','button').text(name)
this does not work either.
any ideas what would work? I suppose if I don't…