I set the height of the text-area element in jQuery mobile, and I got the perfect height and width in the portrait, but the width does not increase in the landscape. Can someone help me? thanks in advance.
HTML: <textarea cols="55" rows="50" name="textarea" id="newMarkCompleteCommentText" style="background-color:White;width:95%;height: 50px;"></textarea> IN JS: $('#newCommentText').attr('style', 'background-color:White;font-size:18px;height:7em;');
Try setting "width: auto". Alternatively, instead of β.attr ('style', ...)β you can use β.css ('attribute', 'value')"
$('#newCommentText').css('background-color', 'white').css('font-size', '18px').css('height', '7em').css('width', 'auto');
If you set the width and height, you do not need to set the columns and rows. Try deleting these values ββand the text field should expand with your% values.
Also, your text fields containing a set of elements to expand?
Source: https://habr.com/ru/post/955023/More articles:How to use fetch method for nested hash? - ruby ββ| fooobar.comJQuery Mobile textarea: how does it use the "rows" attribute? - cssjQuery Mobile and text strings - jqueryWhy does git create a merge? And how to remove them? - gitWhat does the dollar sign java file names and the number of .class in it (name $ 1.class) mean? - javaios 7 bottomLayoutGuide with uitabbarcontroller - iosHow can I get all vals and subobject vals objects using reflection in Scala? - objectCreating a zip stream without using temporary files - pythonHow to make a text area 10 lines tall? - jqueryHow can I get all (non-final) vals and subobject vals objects using reflection in Scala? - objectAll Articles