How to write to change two attributes
梦神
梦神 2018-11-20 22:58:13
0
1
1480

$('input[type]').css('background','pink') This is to change an attribute, if you want to add width and height. How to write it?

梦神
梦神

景安服务器、VPS特价。 免费赠送pos机!

reply all(1)
清浅

You can use the attr attribute in jQuery to change multiple style values

$("input[type]").attr({width:"100px",height:"100px",background:"pink"});


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template