Skip to content
This repository has been archived by the owner on Apr 23, 2018. It is now read-only.

how to apply styling after AJAX loads the select element #33

Open
ojhashankar opened this issue Sep 6, 2012 · 0 comments
Open

how to apply styling after AJAX loads the select element #33

ojhashankar opened this issue Sep 6, 2012 · 0 comments

Comments

@ojhashankar
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant