Jump to content
Larry Ullman's Book Forums

Yii And Js


Edward
 Share

Recommended Posts

I have something i am trying to figure out.

 

I have some hide and show division blocks on one of my yii forms. Now the problem is if i click on the form in real-time to say show a division block, when i submit the form and the validation does not clear because some model attributed are required the division block can now not be seen which means they are reset. So how to save the state of the jquery on the page after the submission of the form has been processed?

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for that that was a more informative link than mine. I am having to deal with a lot of tabular data in yii it's quite difficult but I'm getting there slowly. I was having trouble with adding new inputs as HTML the problem was the events were not blinded to the new HTML so one way I got it to work was by cloning then changing attributes of the elements. If I added HTML manually I had to add the events again manually which led to a lot of code.

Link to comment
Share on other sites

 Share

×
×
  • Create New...