asked on December 6, 2017
I found a method I want to use on W3Schools to programmatically set the rows of a textarea.
https://www.w3schools.com/jsref/prop_textarea_rows.asp
I verified that forms is using a textarea with a rows property.
<textarea id="Field50" name="Field50" aria-labelledby="Field50" class="cf-xlarge" required="True" rows="4" vo="e"></textarea>
So I tried to use this in forms
$('.textbox textarea').on('change', function() { try{ alert('I am about to change the rows!'); $(this).rows = "1"; }catch(err){alert(err.message)} });
It does not seem to be accepted in Forms, the rows is hard set to 4.
0
0