文本框 [英] textbox

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

问题描述



如何使文本框onload填充/ /(即

date)我想要/填充3个位置和6个位置

在文本框中,它不应该是可编辑的...是否可能...

提前感谢..

hi
how to make the textbox onload to be filled with / / (that is for
date ) that is i want the / to be filled in 3 position and 6 position
in the textbox and it should not be editiable...is it possible...
thanks in advance..

推荐答案

欢乐在2007年4月20日上午6:32发表以下内容:
joy said the following on 4/20/2007 6:32 AM:

hi

如何使文本框onload填充/ /(即

date)我想要/填充3位置和6位置

在文本框中,它不应该是可编辑的......是否可能...

提前感谢..
hi
how to make the textbox onload to be filled with / / (that is for
date ) that is i want the / to be filled in 3 position and 6 position
in the textbox and it should not be editiable...is it possible...
thanks in advance..



编号不是你想要这样做的方式:


< input type =" text"> /< input type =" text"> ; /< input type =" text">


你能做的最好。


-

兰迪

C.有利于预备心灵

comp.lang.javascript常见问题 - http://jibbering.com/faq/index.html

Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices/


" joy" < jo ***** @ gmail.comwrote in message

news:11 ********************** @ y80g2000hsf。 googlegr oups.com ...
"joy" <jo*****@gmail.comwrote in message
news:11**********************@y80g2000hsf.googlegr oups.com...

hi

如何使文本框onload填充/ /(用于

date)我希望在文本框中填写3个位置和6个位置

并且它不应该是可编辑的...是否可能...

提前感谢..
hi
how to make the textbox onload to be filled with / / (that is for
date ) that is i want the / to be filled in 3 position and 6 position
in the textbox and it should not be editiable...is it possible...
thanks in advance..



如果我理解正确:


函数giveDate()

{

var d =新日期;

return(d.getMonth()+ 1)+''/''+ d.getDate ()+''/''+ d.getFullYear();

}


document.forms [''form_name'']。elements [' 'text_input_name'']。value = giveDate();


假设一个名为(或ID''d)''form_name''的表单,以及一个名为''text_input_name'的文本输入',

也被禁用(禁用=禁用)。


-Lost

If I understand correctly:

function giveDate()
{
var d = new Date;
return (d.getMonth() + 1) + ''/'' + d.getDate() + ''/'' + d.getFullYear();
}

document.forms[''form_name''].elements[''text_input_name''].value = giveDate();

Assuming a form named (or ID''d) ''form_name'', and a text input named ''text_input_name'',
that is also disabled (disabled="disabled").

-Lost


在comp.lang.javascript消息< JaGdnck7pPVJI7XbnZ2dnUVZ_vCknZ2d @comcas

t.com>, 2007年4月20日星期五09:24:08,-Lost< mi ********* @ comcast.net>

发布:
In comp.lang.javascript message <JaGdnck7pPVJI7XbnZ2dnUVZ_vCknZ2d@comcas
t.com>, Fri, 20 Apr 2007 09:24:08, -Lost <mi*********@comcast.net>
posted:

>"joy < jo ***** @ gmail.com在消息中写道
新闻:11 ********************** @ y80g2000hsf.googleg roups.com ...
>"joy" <jo*****@gmail.comwrote in message
news:11**********************@y80g2000hsf.googleg roups.com...

> hi
如何使文本框onload填充/ /(即
date)即我希望/在文本框中填写3个位置和6个位置
它不应该是可编辑的...是否可能...
提前感谢..
>hi
how to make the textbox onload to be filled with / / (that is for
date ) that is i want the / to be filled in 3 position and 6 position
in the textbox and it should not be editiable...is it possible...
thanks in advance..


如果我理解正确:


If I understand correctly:



我不认为你这样做。

I don''t think you do.


>函数giveDate()
{

var d =新日期;

return(d.getMonth()+ 1)+''/' '+ d.getDate()+''/''+ d.getFullYear();
}
>function giveDate()
{
var d = new Date;
return (d.getMonth() + 1) + ''/'' + d.getDate() + ''/'' + d.getFullYear();
}



如何放置/位置3& ; 6,除了十一月和十二月之后

在9日之后?


为什么假设OP想要一个FFF日期?他可能是正常的,并且想要在中间使用
月份。


如果您之前已经提供了可行的电子邮件地址,那么您将拥有

电子邮件。


-

(c)John Stockton,英国萨里。 ?@merlyn.demon.co.uk Turnpike v6.05 IE 6.

Web< URL:http://www.merlyn.demon.co.uk/- w。常见问题主题,链接,首字母缩略词

PAS EXE等:< URL:http://www.merlyn.demon.co.uk/programs/-见00index.htm

日期 - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm等

How would that put / in positions 3 & 6, except in November and December
after the 9th?

Why assume the OP wants an FFF date? He may be normal, and want the
month in the middle.

If you had earlier given a workable E-mail address, you would have had
E-mail.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 IE 6.
Web <URL:http://www.merlyn.demon.co.uk/- w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/- see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.


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

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