darioo
(Timmy Dario)
1
I tried to echo this
$form->textField($model,"['+i+']mjesto_pustanja")
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.
darioo
(Timmy Dario)
3
Problem is that I have more of those text fields but with different attributes.
It looks something like this
http://imageshack.com/a/img208/1843/pcyg.png
i1111991
(I1111991)
4
just use jquery to remove those string that you don’t need.
darioo
(Timmy Dario)
5
I need that single or double quote. But yii doesn’t generate it as quote but as html code for quote