html - textarea in form is too small -
i want create textareas parametrs "cols" , "rows" , show in forms. unfortunetlly params don't work. it' no diffrence if cols=1000 , cols=1. think it's problem in code. table:
<table id="list"> <thead > <tr> <th>numer jednostki <br />redakcyjnej</th> <th>treść</th> <th>proponowana zmiana brzmienia zapisu <br />lub treść nowego zapisu</th> <th>uzasadnienie</th> </tr> </thead> <tbody> <tr> <td><input type="text" size="20" name="numer[]"></td> <td><input type="textarea" cols="1000" rows="800" name="tresc[]"></td> <td><input type="textarea" cols="1000" rows="800" name="zmianazapisu[]"></td> <td><input type="textarea" cols="1000" rows="800" name="uzasadnienie[]"></td> </tr> </tbody>
this image how looks like. first column text field rest columns textareas.
i want resize textareas parametrs. can help me?
edit:
after help size of text areas works this:
it's current code:
function addrows(){ $html = '<textarea id="template" style="display:none;" cols="100" rows="8"> <tr id="row_{0}"> <td><text" size="20" name="numer[]"></td> <td><textarea style="resize:both;" name="tresc[]"></textarea></td> <td><textarea style="resize:both;" name="zmianazapisu[]"></textarea></td> <td><textarea style="resize:both;" name="uzasadnienie[]"></textarea></td> <td><img src="/../_img/row_del.png" id="delete_{0}" alt="usun"></td> </tr> </textarea> <table id="list"> <thead > <tr> <th>numer jednostki <br />redakcyjnej</th> <th>treść</th> <th>proponowana zmiana brzmienia zapisu <br />lub treść nowego zapisu</th> <th>uzasadnienie</th> </tr> </thead> <tbody> <tr> <td><input type="text" size="20" name="numer[]"></td> <td><textarea style="resize:both;" name="tresc[]"></textarea></td> <td><textarea style="resize:both;" name="zmianazapisu[]"></textarea></td> <td><textarea style="resize:both;" name="uzasadnienie[]"></textarea></td> </tr> </tbody> </table>
you using wrong way create textarea
seek this
<td><input type="text" size="20" name="numer[]"></td> <td><textarea cols="1000" rows="800" name="tresc[]"></textarea></td> <td><textarea cols="1000" rows="800" rows="800" name="zmianazapisu[]"></textarea></td> <td><textarea cols="1000" rows="800" rows="800" name="uzasadnienie[]"></textarea></td>
input
type never used textarea
html forms textarea
No comments:
Post a Comment