Disabling input Text box


#1

Hi friends ,
I want to disable the text box we use in ruby on rails .How can I add
the disabled keyword inside <%= text_field ‘invoice’, ‘inv_amount’
,“size”=> 15 %> .
I tried <%= text_field ‘invoice’, ‘inv_amount’ ,“size”=> 15 ,“disabled”
%>

Thanx and regards,
Naroor R.,


#2

Sorry friends ,
It can be done using
<%= text_field ‘invoice’, ‘inv_amount’,“size”=> 15,“Disabled”=>’’ %>

Thanx for reading ,
Naroor R.,