サーバー側のコントロールのoffsetHeightを取得しようとしていますが、エラーが発生します。次のコードスニペットは次のとおりです-
function Test() {
var imgFavorite = $("<%= imgFavorite.ClientID %>"); //imgFavorite is a server-side asp:Image control.
alert(imgFavorite); //[object Object]
alert(imgFavorite.offsetHeight()); //undefined.
}
コードの何が問題になっていますか?