How to show variable length text in fixed width textbox in jquery Dialog box

In jQuery dialog there is textbox containing variable length text …
I want to textview to adjust it’s width within Dialog box (Scroller is displayed if textbox exceeds width of dialog and I don’t want that scroller)..
Text should be adjusted within textbox (there should not be any scroller) (Height problem)…

  • JavaScript blinking eye animation
  • D3.js: Centering a responsive pie chart in its parent div
  • jQuery - If left <= 0, set css to X amount
  • Why does my element shift down when selected?
  • Changing a page to edit mode using css
  • Hover over a hidden element to show it
  • Colorbox's overlay not showing
  • Bootstrap and Jquery with node js
  • Export buttons are not appearing in Datatable
  • How to do lazy loading image with srcset?
  • Button element not firing click event when clicking on button text and releasing off it (but still inside the button)?
  • What is default z-Index of <div> element in HTML, and how to get it using JavaScript?
  • One Solution collect form web for “How to show variable length text in fixed width textbox in jquery Dialog box”

    I believe this answers your question:
    Automatically resize jQuery UI dialog to the width of the content loaded by ajax

    $(".mydialog").dialog({
        autoOpen: false,
        resizable: false,
        modal: true,
        width:'auto'
    });