Alternative to Javascript prompt box

后端 未结 6 1529
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-19 15:07

Does anyone can suggest me the alternative to Javascript prompt box? Check it out.
Since the input box is designed for children, I want the prompt box to be more colorf

相关标签:
6条回答
  • 2020-12-19 15:12

    I find the browser's prompt (, confirm and delete) boxes extremely annoying.

    Partly to solve this problem, I've written iocream.js. It's a sample wrapper around the DOM with two text-input methods: jin (read like C++ ' s cin) and jinarea.

    You can find the docs at this bitbucket repo, and examples here.

    Hope I helped.

    EDIT: I've posted a similar answer here.

    0 讨论(0)
  • 2020-12-19 15:14

    the Jquery UI one's good: http://jqueryui.com/demos/dialog/

    0 讨论(0)
  • 2020-12-19 15:25

    Have you tried the jQuery UI library?

    Here you can see an example of a modal form

    You can modify the styles or select from different themes.

    0 讨论(0)
  • qtip2 is another nice free javascript library http://qtip2.com/

    0 讨论(0)
  • 2020-12-19 15:34

    A jquery plugin named Impromptu gives you a lot of options not only for prompts but also for alerts and confirm boxes

    0 讨论(0)
  • 2020-12-19 15:38

    Have you tried out BootBox?

    Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Twitter’s Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers.

    It has a very neat alternative to the default JavaScript Prompt box.

    0 讨论(0)
提交回复
热议问题