使用Javascript在sharepoint List中获取Null的选择字段值 [英] Choice Field Value getting Null in sharepoint List using Javascript

查看:83
本文介绍了使用Javascript在sharepoint List中获取Null的选择字段值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

   当我尝试使用PreSaveAction从Choice Field获取值时,我得到null值。

    I am getting null value when ever I try to get the value from Choice Field Using PreSaveAction.

      var value = $(" select [title ='dropdown column name']选项:selected")。text();

     var value = $("select[title='dropdown column name'] option:selected").text();

   可能是PostBack返回null .....但我不确定

    May be PostBack returning null.....But I am not sure

 请解释如何拉这个值。

  please explain how to pull this value.

谢谢,

推荐答案

您好

尝试以下代码,

 var value =


(" select [title ='dropdownfieldname']")。val();
("select[title='dropdownfieldname']").val();

谢谢


这篇关于使用Javascript在sharepoint List中获取Null的选择字段值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆