JQuery ui dialog image for title

Is it possible, when specifying the jQuery UI dialog box, that the image is placed for my title instead of plain text?

thanks

+4
source share
1 answer

You can provide any HTML as a title parameter, for example:

 $("#dialog").dialog({ title: '<img src="myImage.jpg" />' });​​​​​​​​​​​ 

Here you can see an example.


Or, as another demo, to annoy the hell out of your users, you could do this :

 $("<div />").dialog({ title: '<marquee>Hello</marquee>' });​ 
+9
source

All Articles