Hide & show a widget using Jquery
In my form created with symfony 1.4, I have a sfWidgetFormDoctrineChoice
in which I choose one of options, I want to hide some field & show them un开发者_StackOverflow社区til my choice was token.
maybe u should write this code: $('#model_id_table').closest("td").find('label').hide();
*td if your widget is set in table,u can use any other tag.
Maybe you have problems with widget's name.
So, Visit this Link for more informations : http://api.jquery.com/hide/
精彩评论