如何在使用 jquery 单击后在以下 select:style 中仅删除 background-color: rgb(255, 196, 196);
?
<input name="star" style="width: 60px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 196, 196); background-position: initial initial; background-repeat: initial initial; ">
最佳答案
您可以使用.css()
功能:
$('input[name="star"]').css({ backgroundColor : '' });
关于javascript - 删除输入 :style after click with jQuery 中的 attr,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7660307/