document ready in JQuery

by pietman 20. May 2011 08:46
<span id="<%=ClientID %>_MouseXY">failed</span>

        protected void Page_Load(object sender, EventArgs e)
        {
            Page.ClientScript.RegisterClientScriptBlock(GetType(),"BitlinkMouseXY",@"
            $(function (){
            $('#" + ClientID + @"_MouseXY').html('worked');
            });", true);
        }


$(document).ready(function (){
// code
});

Becomes (in JQuery)

$(function (){
// code
});

Tags:

Javascript | JQuery

Add c0mment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About ...

pietman celliersPietman Celliers
Bitlink  Ltd
bitlinkit.com