sharepoint 2010 调查 / 选项 / 将(指定自定义值)修改为(其他)/ jquery 修改input 值与绑定(for) label,修改label的值

 <input name="ctl00$m$g_5dfea861_4535_4b41_9b1b_24242d008905$ctl00$ctl01$ctl01$ctl00$ctl00$ctl04$ctl00$RadioButtons" id="ctl00_m_g_5dfea861_4535_4b41_9b1b_24242d008905_ctl00_ctl01_ctl01_ctl00_ctl00_ctl04_ctl00_ctl04" type="radio" value="ctl04"/>
    <label for="ctl00_m_g_5dfea861_4535_4b41_9b1b_24242d008905_ctl00_ctl01_ctl01_ctl00_ctl00_ctl04_ctl00_ctl04">
      文本 - 指定自定义值:
    _spBodyOnLoadFunctionNames.push("FunctionName");   
    function FunctionName()   
    {
    //修改input的值
    $("input[id='ctl00_m_g_5dfea861_4535_4b41_9b1b_24242d008905_ctl00_ctl01_ctl02_ctl00_ctl00_ctl04_ctl00_ctl03']:checked").val("1251651651")
    //修改label的值
        $("[id='ctl00_m_g_5dfea861_4535_4b41_9b1b_24242d008905_ctl00_ctl01_ctl02_ctl00_ctl00_ctl04_ctl00_ctl03']").next().text("其他")
    }

 


posted @ 2015-07-13 14:08  muddy-bear  阅读(315)  评论(0编辑  收藏  举报