请帮我做datepicker [英] Please help me to do datepicker

查看:73
本文介绍了请帮我做datepicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我想在一个while循环中放一个javascript datepicker ......但它对我没用...



这是我的代码..

Hi all,

I want to put a javascript datepicker in a while loop... but it didnt work for me...

Here is my code..

window.onload = function(){
		new JsDatePick({
			useMode:2,
			target:"dateFrom",
			dateFormat:"%Y-%m-%d"
			
		});

<input type="text" name="dateFrom" id="dateFrom?>" value="<?php  echo $dateFrom ??>" style="width:70px;"  />

推荐答案

dateFrom ??> style = width:70px; />
dateFrom ??>" style="width:70px;" />


使用jquery日期选择器将日期显示到文本框



u刚发布到php文件你得到日期和时间



use jquery date picker that wil display date to text box

u just post to php file u get the date and time

<!doctype html>

<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>jQuery UI Datepicker - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
    <link rel="stylesheet" href="/resources/demos/style.css" />
    <script>


(function(){
(function() {


这篇关于请帮我做datepicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆