XModPro

Change DataSource

Mandy Hodges Mandy Hodges asked Jul 9, 2014
Active Jul 9 · Viewed 2463 times
<p>Hi,</p><p>I have a drop down list whose DataSourceId property needs to change depending on an option chosen from a radiobutton list.</p><p>Is it possible to change the DataSourceId with jquery and if so, how?</p><p>I've tried doing&nbsp;</p><p>alert($('#' + Authorisation.ddCong).attr('DataSourceId'));</p><p> alert($('#' + Authorisation.ddCong).prop('DataSourceId'));</p><p>in the radiobutton change function but it just displays 'undefined' for both, so I'm guessing if it's possible, there is another way to do it.</p><p>Thanks</p><p>Mandy</p>

2 Answers

Loading answers...