chosen icon indicating copy to clipboard operation
chosen copied to clipboard

how to apply styling after AJAX loads the select element

Open ojhashankar opened this issue 12 years ago • 0 comments

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

ojhashankar avatar Sep 06 '12 08:09 ojhashankar