如何在jquey中为textbox赋值 [英] How to assign value to textbox in jquey
本文介绍了如何在jquey中为textbox赋值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
how to assign value to textbox in jquey
我的尝试:
< input id =chart0Filter0name =Report Datetype =dateng-model =dateclass =date-filter pseudo-input live-update>
var date =26-08-2016
$(#chart0Filter0)。val(date);
What I have tried:
<input id="chart0Filter0" name="Report Date" type="date" ng-model="date" class="date-filter pseudo-input live-update">
var date="26-08-2016"
$("#chart0Filter0").val(date);
推荐答案
(#chart0Filter0)。val(日期);
("#chart0Filter0").val(date);
问题是
HTML 5中的日期控制接受年 - 月 - 日的格式。
The problem is
Date control in HTML 5 accepts the format of "Year - month - day".
var date="2016-08-26"
( #chart0Filter0)。val(date);
("#chart0Filter0").val(date);
在角度js你可以尝试li ke this
In angular js you can try like this
var app = angular.module('myApp', []);
function myCtrl(
这篇关于如何在jquey中为textbox赋值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文