深入浅出SharePoint——定制保存Item按钮

<script type="text/javascript" src="/_layouts/style/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('[id*="toolBarTbltop"]').closest('table').hide();
$('[id*="toolBarTbl"]').closest('table').hide();
$('[>(){
  alert($('input[title="Title"]').val());
if($('input[title="Title"]').val()=="a")
{
  return false;
}
else
{
   $('[id*="SaveItem"]:first').click();
}
});

$('[>(){
  $('[id*="GoBack"]:first').click();
});
});
</script>
<input name="testOK" class="ms-ButtonHeightWidth" />
<input name="testCancel" class="ms-ButtonHeightWidth" />

 

相关文章:

  • 2021-11-02
  • 2021-07-30
  • 2021-12-18
  • 2021-05-20
  • 2022-02-23
  • 2021-07-29
  • 2021-12-27
  • 2021-06-24
猜你喜欢
  • 2021-10-25
  • 2021-09-30
  • 2021-11-21
  • 2022-02-12
  • 2022-01-29
  • 2022-01-20
  • 2021-10-13
相关资源
相似解决方案