Asp:checkbox find control in javascript

2 posts, 1 answers
  1. New
    New  avatar
    25 posts
    Member since:
    Jul 2012

    Posted 27 Jun 2012 Link to this post


    asp:checkbox are find control in javascript ,
    how i achieve this

    Thanks Advance,
    New Gene.
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Jun 2012 Link to this post

    Hi,

    Try the following Js to find control of a asp:checkbox
    JS:
    <script type="text/javascript">
    function pageLoad()
    {
     var chk = document.getElementById('<%=CheckBox1.ClientID%>');
    }
    </script>

    Thanks,
    Princy
Back to Top