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
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.
the Jquery UI one's good: http://jqueryui.com/demos/dialog/
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.
qtip2 is another nice free javascript library http://qtip2.com/
A jquery plugin named Impromptu gives you a lot of options not only for prompts but also for alerts and confirm boxes
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.