You must Sign In to post a response.
  • Category: JavaScript

    How to call dropdown using javascript onchange ?

    <script>
    jQuery.noConflict()(document).ready(function() {
    $('#hide').css('display','none');
    $('#plano').change(function(){

    if(document.getElementById('plano').value == 1){
    $('#hide').show('slow');

    }else
    if(document.getElementById('plano').value == 0){

    $('#hide').hide('slow');
    }else
    if(document.getElementById('plano').value == 0){
    $('#hide').css('display','none');

    }

    });
    $('#plano').change();
    });
    </script>
  • #765333
    Hi,
    Try:
    document.getElementById('<%=yourDropdown.ClientId%>').onchange();
    Or
    __doPostBack('<%= yourDropdown.UniqueID %>', '');

    Hope it helps.
    Regards,
    Shashikant Gurav
    shashikantgurav22@gmail.com


Sign In to post your comments