0

これは通常の入力フィールドでは機能しますが、日付ピッカーと JavaScript を生成するように見える日付フィールドでは機能しないようです。

$('input[title=Followup Date]').parent().parent().parent().hide();

これどうやってするの?生成されたマークアップは次のようになります

<TR>
        <TD nowrap="true" valign="top" width="190px" class="ms-formlabel"><H3 class="ms-standardheader">
        <nobr>Followup Date</nobr>
    </H3></TD>
        <TD valign="top" class="ms-formbody" width="400px">
        <!-- FieldName="Followup Date"
             FieldInternalName="Followup_x0020_Date"
             FieldType="SPFieldDateTime"
          -->
            <span dir="none">
        <SCRIPT language='javascript'>g_strDateTimeControlIDs["SPFollowup_x0020_Date"] = "ctl00_m_g_4175fece_4419_4c1f_a18a_4357d8c9376e_ctl00_ctl04_ctl08_ctl00_ctl00_ctl04_ctl00_ctl00_DateTimeField_DateTimeFieldDate";</SCRIPT>
                        <table border=0 cellpadding=0 cellspacing=0><tr>
                        <td class="ms-dtinput" >
                        <label for="ctl00_m_g_4175fece_4419_4c1f_a18a_4357d8c9376e_ctl00_ctl04_ctl08_ctl00_ctl00_ctl04_ctl00_ctl00_DateTimeField_DateTimeFieldDate" style="display:none">Followup Date Date</label>
                        <input name="ctl00$m$g_4175fece_4419_4c1f_a18a_4357d8c9376e$ctl00$ctl04$ctl08$ctl00$ctl00$ctl04$ctl00$ctl00$DateTimeField$DateTimeFieldDate" type="text" maxlength="45" id="ctl00_m_g_4175fece_4419_4c1f_a18a_4357d8c9376e_ctl00_ctl04_ctl08_ctl00_ctl00_ctl04_ctl00_ctl00_DateTimeField_DateTimeFieldDate" title="Followup Date" class="ms-input" AutoPostBack="0" /></td>
                        <td class="ms-dtinput" >
                        <A href="#" onclick='clickDatePicker("ctl00_m_g_4175fece_4419_4c1f_a18a_4357d8c9376e_ctl00_ctl04_ctl08_ctl00_ctl00_ctl04_ctl00_ctl00_DateTimeField_DateTimeFieldDate", "\u002fsites\u002fforms\u002fBrightIdeas\u002f_layouts\u002fiframe.aspx?&cal=1&lcid=1033&langid=1033&tz=-04:00:00.0001681&ww=0111110&fdow=0&fwoy=0&hj=0&swn=False&minjday=109207&maxjday=2666269&date=", ""); return false;' ><IMG id=ctl00_m_g_4175fece_4419_4c1f_a18a_4357d8c9376e_ctl00_ctl04_ctl08_ctl00_ctl00_ctl04_ctl00_ctl00_DateTimeField_DateTimeFieldDateDatePickerImage src="/_layouts/images/calendar.gif" border="0" alt="Select a date from the calendar."></IMG></A></td>
4

0 に答える 0