jQuery UI Alert Dialog as a replacement for alert()

前端 未结 9 607
独厮守ぢ
独厮守ぢ 2020-12-13 18:51

I\'m using alert() to output my validation errors back to the user as my design does not make provision for anything else, but I would rather use jQuery UI dial

9条回答
  •  没有蜡笔的小新
    2020-12-13 19:46

    Just throw an empty, hidden div onto your html page and give it an ID. Then you can use that for your jQuery UI dialog. You can populate the text just like you normally would with any jquery call.

提交回复
热议问题