当前位置: 动力学知识库 > 问答 > 编程问答 >

jquery - Javascript datepicker inside prompt

问题描述:

I've never seen it before, but I reckon it can be done.

I'm making an application right now, and I use a prompt in javascript to get the requried data, like

description = prompt ("insert your description here, please");

Now, we want to be able to retrieve a date from a datepicker inside this prompt.

So, prompt comes up, asks for a description, you fill in your description, click ok, and then another prompt box comes up with a datepicker. That's the idea, but it seems impossible to achieve.

Can someone guide me to the right direction?

网友答案:

It looks like a modal dialog would be more appropriate than a form:

http://jqueryui.com/dialog/#modal-form

分享给朋友:
您可能感兴趣的文章:
随机阅读: