Title: multiline textbox sizes Post by: korenanzo on November 11, 2014, 08:32:17 AM Hi,
I'd like to know if it is possible to set the width and height of a multiline textbox according to the "rows" and "cols" properties of the inner <textarea> This does not work <input type=text id="t"> $('#t').textbox({ multiline:true, cols:40, rows:5 }) neither this: $('#t').textbox('textbox').attr('cols',40).attrs('rows',5) The former discards the rows and cols parameter, the latter actually sets the textarea attributes but the textbox'size is left unchanged. Thanks, ric Title: Re: multiline textbox sizes Post by: stworthy on November 11, 2014, 08:46:07 AM Please try the code below:
Code: $('#t').textbox({multiline:true}).textbox('textbox').attr('rows',5).attr('cols',40).css({ Title: Re: multiline textbox sizes Post by: korenanzo on November 11, 2014, 09:08:53 AM got it
not quite intuitive, but it works :) Thanks, RIc |