1. 程式人生 > >html dom屬性獲取

html dom屬性獲取

#foreach($pending in $pendings)
<tr>
    <td  selectId="$!pending.id" orderCode="$!{pending.orderCode}" transType="$!{pending.transType}" style="text-align: center !important;">$!pending.id</td>
    <td style="text-align: center !important;">#if($!pending.commitTime) $!pending.commitTime
    #else / #end</td>
    <td style="text-align: center !important;">#if($!pending.type) $!pending.type
    #else / #end</td>
    <td style="text-align: center !important;">#if($!pending.status) $!pending.status
    #else / #end</td>
    <td style="text-align: center !important;"><a href="javascript:void(0)" class="detail_btn" style="text-align: center;display: block">檢視</a></td>
</tr>
#end
orderCode= $(this).parent().parent().children(':eq(0)').attr("orderCode");