开发者

How can I create a modal dialog with a text and a listbox with javascript

开发者 https://www.devze.com 2023-02-15 22:57 出处:网络
Since I am new in javascript my question is how can I create a modal dialog using javascript. In this modal dialog I want to have 3 controls. An editbox, a textbox and a listbox. The user enters value

Since I am new in javascript my question is how can I create a modal dialog using javascript. In this modal dialog I want to have 3 controls. An editbox, a textbox and a listbox. The user enters value in the edit box and if there are more than one result i want to display it in the listbox. Then the user sele开发者_开发知识库cts one from the listbox and pressing the OK button the dialog returns the selected value.

I 've been trying to find a sample code to do this with no luck. Can anyone help?


I would recommend a javascript library like dhtmlx (or jQuery, I haven't tried that).

http://dhtmlx.com/docs/products/dhtmlxWindows/index.shtml

With dhtmls you can define custom modal windows by javascript!

0

精彩评论

暂无评论...
验证码 换一张
取 消