MyException - 我的异常网
当前位置:我的异常网» ASP.NET » DataList 批改

DataList 批改(2)

www.MyException.Cn  网友分享于:2013-02-21  浏览:12次

                <td>操作</td>
            </tr>
            <tr>
                <td>
                    <ul>
                        <li><image class="goodsimg" src="http://avatar.profile.csdn.net/0/3/2/1_liangtianheng.jpg" ></image></li>
                        <li>
                            <span style="height:30px; display:block;"></span>
                            <span class="gooodsinfo">
                            七匹狼男装<br />SSS
                            <a class="div_tag">橙色</a>
                            <a class="a_sel disnone"><span class="saveThis">保存</span><span class="cancelThis">取消</span></a>
                            </span>
                        </li>
                    </ul>
                </td>
                <td>¥600</td>
                <td>55</td>
                <td><a class="a_del">删除</a><a class="a_mod" cumid="2">修改</a></td><%--假如这个商品的id是2--%>
            </tr>
        </table>

<script type="text/javascript">
//jq的库记得引入
        $(function () {
            $(".a_mod").live('click', function () {
                var objThis = $(this).parent().parent().find("li:eq(1)");
                var id = $(this).attr("cumid");

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有