Hi All,
Im populating a DropDownList based on selection of another DropDowList.
Here is my code :
<script language="javascript" type="text/javascript">
$(document).ready(function() {
InitJQuery();
});
// this function will be called after the UpdatePanel finishes processing and set up jQuery again
function pageLoad() {
InitJQuery();
}
function InitJQuery()
{
$(".ParentList").bind("change", function()
{
var selectedValue = $(this).val();
var ElementId = this.id;
var first = ElementId.lastIndexOf('_');
var second = ElementId.substring(first,0);
var last = ElementId.substring(ElementId.length,first);
var PrimaryRoleId = last.replace("_",""); ...
Go to the complete details ...