ajax html 如何获取html元素

ajax html 如何获取html元素,第1张

<script type="text/javascript">

        $(document)ready(function() {

            $("#select")click(function() {

                var startdate = $("#startdate")datebox('getValue');

                var endate = $("#enddate")datebox('getValue')

                $ajax({

                    type: "post",

                    dataType: "html",

                    url: "/Service/WebServiceashxMethod=GetMealCalendHtml",

                    data: { startDate: startdate, endDate: endate },

                    success: function(json) {

                        $("#calendaPanel")empty();

                        $("#calendaPanel")append(json);

                    }

                });

            });

        });

        function Oncheck(mealdata) {

            $("#" + mealdataid + " input[type=checkbox]")each(function() { consolelog(this) });

        }  

    </script>

1、首先第一步就是要在页面初始化时候 easyui datebox 怎么设置默认值为当前系统日期

<td style="width:150px">入库日期:</td>

<td style="width:200px"><input editable="false"

2、接着就是输入<script language="javascript">,这时候得到当前日期

formatterDate = function(date)

3、接着就是要输入return dategetFullYear() + '-' + month + '-' + day;这时候就会出现windowonload = function()

4、最后jquery easyui datebox 默认值为当前系统日期就设置完成了,如下图所示。

以上就是关于ajax html 如何获取html元素全部的内容,包括:ajax html 如何获取html元素、在页面初始化时候 jquery easyui datebox 怎么设置默认值为当前系统日期、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/9561256.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-29
下一篇2023-04-29

发表评论

登录后才能评论

评论列表(0条)

    保存