I thought there should be an easy way like:
echo $this->form->getInput('similar_text', array('style' => 'background: red;'));
But it seems to be harder than my except.
I need to generate an output like this:
<input type="text" name="jform_similar_text" style="background: red;" />
How should I do it using Joomla's Standard way?
Environment: Joomla 3.4
Thank you