I am using a few page validation tools one problem i have is they tell me textarea must have rows and cols attribute. If i am setting this in CSS or using display:none (and using it to hold raw text data) can i do something to skip? it seems like the only answer is rows=”0″ cols=”0″ each time i use it. But i have a feeling that is not a good solution.
Share
Stop using a
textarea. If you want something to hold raw data, then use a<script>element (if you plan to access it with JS) or aninputof typehidden(if you plan to submit it as form data).Don’t use semantics that say “Let the user enter data” if you don’t plan to let the user enter data.