Getting updated value from dropdownlist inside updatepanel into jquery

c-m

New Member
Using ASP.Net/JQueryI have a dropdownlist inside an updatepanel. When the value of the dropdownlist changes and an asynchronous postback is made, how do I then update a variable in my jquery function with the new value of the dropdownlist?I'm having a hard time getting the new value from the dropdownlist into the jquery function, it only picks up the previously selected value.inside the pre_render, we are registering the script.ThanksTR\[code\]<script type="text/javascript">$(document).ready(function () {var selectedText = $('#ddlTest option:selected').text(); alert(selectedText);}</script>\[/code\]
 
Back
Top