$(document).ready(function () {
$("#hiddenScreenWidth").val($(window).width());
$("#hiddenScreenHeight").val($(window).height());
if($(window).width() < 370) {
$("#TextBox1").width($(window).width()-10);
}
if ($("#TextBox1")[0].scrollHeight > $(window).height() - 90) {
$("#TextBox1").height($(window).height() - 98);
}
});The below said code will re-size a textbox according to the screen height and width.
