[英]How can I use JavaScript or jQuery to change the background color of the `Save` and `Cancel` buttons in a SharePoint 2013 edit form?
如何使用JavaScript或jQuery更改SharePoint 2013编辑表单中“ Save
和“ Cancel
按钮的背景颜色?
You can select the required element by value using jQuery 您可以使用jQuery按值选择所需的元素
var submitButton = $("input[value='Submit']"); //use value='Cancel' for cancel button
Add CSS properties using jQuery css() method 使用jQuery css()方法添加CSS属性
submitButton.css("background-color", "green")
Make sure to add reference to the jQuery library file before performing the above operations. 在执行上述操作之前,请确保添加对jQuery库文件的引用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.