Activetextfield Single Quote As Attribute

I tried to echo this


But it generates this

<input name="RacingTable[& #039;+i+& #039;][mjesto_pustanja]" id="RacingTable_& #039;+i+& #039;_mjesto_pustanja" type="text" />

(without spaces between & and #)

I need ‘+i+’ because I’m using it in jquery to insert those fields on the fly.

You can use fieldname[] instead. This will give you an array of values.

Problem is that I have more of those text fields but with different attributes.

It looks something like this

just use jquery to remove those string that you don’t need.

I need that single or double quote. But yii doesn’t generate it as quote but as html code for quote