I need a jQuery alert box to accept more text

curiouswebster
curiouswebster used Ask the Experts™
on
I have an alert() box working fine. But I need it to display a short sentence and it's only displaying 10 letters.

Can I make it bigger?

Thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Multitechnician
Top Expert 2014
Commented:
Click on the options Tab : http://jqueryui.com/demos/dialog/

You can set minWidth and width

$( ".selector" ).dialog({ width: 1600 });

Open in new window

curiouswebsterSoftware Engineer

Author

Commented:
The simple demo is not so easy to use. Where do I put the text?
leakim971Multitechnician
Top Expert 2014
Commented:
Simple : http://jsfiddle.net/H4U6R/

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css" type="text/css" media="all" /> 
<div id="CONTAINER_ID" title="newbieweb">
YOUR TEXT
</div>

Open in new window

JS :
$(document).ready(function() {
    $("#CONTAINER_ID").dialog({"width":1024,"autoOpen":true});
})

Open in new window

HainKurtSr. System Analyst

Commented:
"I have an alert() box working fine"

any code for this? why it is limiting to 10? make it 100 :)
curiouswebsterSoftware Engineer

Author

Commented:
HainKurt,

Where can I adjust the width? I only estimated 10 characters were being displayed...
HainKurtSr. System Analyst

Commented:
but you did not post any code :)
curiouswebsterSoftware Engineer

Author

Commented:
Thanks! Sorry for the delay...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial