Welcome Guest, Not a member yet? Register   Sign In
form_textarea(). How to set the textarea content to be read only.
#1

[eluser]Nano HE[/eluser]
Hey,

Good day.


Is there any attribute to set the form_textarea() content to read only?

Or any other solution for multi rows text content read only.

any help will be appreciated.

BR
Nano
#2

[eluser]rogierb[/eluser]
<code>&lt;textarea name="some_name" rows="3" cols="25" readonly="readonly"&gt; </code>

<code>
$data = array(
'name' => 'some_name',
'rows' => '3',
'cols' => '25',
'readonly' => 'readonly',
);
echo form_textarea($data);
</code>

This should do the trick.
#3

[eluser]Nano HE[/eluser]
Thanks a lot.

‘readonly’ => ‘readonly’,

:-)




Theme © iAndrew 2016 - Forum software by © MyBB