I'm trying to use jquery to change a dropdown value in SharePoint page and when the dropdown value is changed I want to fire another event. I can change the dropdown value using jquery but it does not fire the next event when it is changed. So i'm missing something. Any advice greatly appreciated.
the fiddle is here: http://jsfiddle.net/vhabhsrosed/Ljkb2574/4/
the code example:
//SET CODE TO FUNCTION WHEN ON COMMITTEE MEETING FORMS PAGE
$(document).ready(function(){
var xAgenda = "Safety";
//alert("COMMITTEE = " + xAgenda);
var xCT = "Committee Action - " + xAgenda;
alert(xCT);
$("SELECT[title*='Content Type']").change(function(){
alert("ive changed");
});
$("SELECT option").filter(function () { return $(this).html() == xCT; }).prop('selected', true); //USE TO CORRECT WELCOME PAGE BOUNCE BACK ISSUE?
};
}); //end ready
html:
<SELECT id=ctl00_m_g_73ef22dd_6fe8_4ce8_94c0_1b7d874cdfff_ctl00_ctl03_ctl00_ContentTypeChoice onchange='javascript:ChangeContentType("ctl00_m_g_73ef22dd_6fe8_4ce8_94c0_1b7d874cdfff_ctl00_ctl03_ctl00_ContentTypeChoice");return false;' title="Content Type" name=ctl00$m$g_73ef22dd_6fe8_4ce8_94c0_1b7d874cdfff$ctl00$ctl03$ctl00$ContentTypeChoice> <OPTION value=0x0120D520001469F1B33983014989722309DE2BAFAC0100416798CC598C4E43903503BA4D460EF6>Committee Action - IRB</OPTION> <OPTION value=0x0120D520001469F1B33983014989722309DE2BAFAC0200EE39994BAB615D4CADD41635A918D718>Committee Action - RD</OPTION> <OPTION value=0x0120D520001469F1B33983014989722309DE2BAFAC030096FDF742BA2F8E4EBBF1DAD5C8B6384C>Committee Action - Safety</OPTION> <OPTION value=0x0120D520001469F1B33983014989722309DE2BAFAC040035D10A3E06ED814B9D835360A72FABF4>Committee Action - IACUC</OPTION> <OPTION
selected value=0x0120D52000A1B582C0DF52EB46AA1F5C53E2DC0C0201005F3A412617BB174F9E36A034814628CD>RD Initial Review</OPTION> <OPTION value=0x0120D520005AAA856F0D99404B89B2AD9529929FA1007DE53F828E3A66468322C1A2C5456BAB>IRB Initial Review Boston</OPTION> <OPTION value=0x0120D52000108E9966C7546C48B61574E1FF57AA28008A6A3A90053F364BB255FF280AD0FE56>IRB Initial Review Database</OPTION> <OPTION value=0x0120D52000108E9966C7546C48B61574E1FF57AA2802004A3E0498749C7B42994C284798BEBB42>Initial Review Human DB DEV</OPTION> <OPTION value=0x0120D52000F075F641EF75F049BD4AA6AD0A13532D00178F81E09433E84788C6E97F025243D8>Conflict of Interest Management</OPTION> <OPTION value=0x0120002834AA767DF58D48A360E9F8A05078C7>Folder</OPTION></SELECT>