ajaxSubmitButton with onSubmit

Hi,

I want to directly show a css element when the user clicks on a submit button.

This is not working, how can i solve that?


CHtml::ajaxSubmitButton('News an',

				array('ajax/newsAn'),

				array(

					'update'=>'.newsletter_content',

					'onclick'=>'$(".newsletter_info").show();',

						

				      )

			      );



Thanks for ideas!

You can use before send and complete.

Give a look here.

Thanks. Works great!