asp.NetupdatepanelによるJSのロードができず、使用できない解決方法

1168 ワード

 
  
<br>    var prm = Sys.WebForms.PageRequestManager.getInstance(); <br>    prm.add_endRequest(function () { <br>        // re-bind your jquery events here  <br>        $(document).ready(function () { <br> <br>            //begin <br>            var span = $("input[id*='txtSpan']"); <br>            span.focusout(function () { <br>                var greaterthenzero = (span.val() == 0); <br>                if (span.val() == 0) { <br>                    $("#spRule").show(); <br>                    $("input[id*='btnSave']").attr("disabled","disabled"); <br>                } <br>                else { <br>                    $("#spRule").hide(); <br>                    $("input[id*='btnSave']").removeAttr("disabled"); <br>                } <br>            }); <br>            //end <br> <br>        }); <br>    } <br> ); <br>