chosen
chosen copied to clipboard
how to apply styling after AJAX loads the select element
Hi ,
I have applied the chzn-select to my drop down it works great till the time i fire selected event change which is inside the updatepanel .
I tried to apply same class again using jquery as follows
$(function () { Sys.WebForms.PageRequestManager.getInstance().add_endRequest(loadControlDuringAjax); loadControlDuringAjax(); }); function loadControlDuringAjax() { $("#ContentPlaceHolder1_inputMetroLineMasterId").addClass("chzn-select formInput"); }
This is not working ,
Any idea how to apply the CSS again after ajax loads the control.
Thanks in advance.
Shankar