0
我正在尝试使用jQuery来显示我设置为显示的图像:无。我运行代码服务器端,但在页面呈现后没有看到图像。有人可以告诉我我需要修复代码以显示最初设置为显示的图像:无?有很多图标我试图展示,所以我试图使用jQuery的类属性来做到这一点。如果有问题,我正在使用母版页。用ClientScriptBlock切换图像
服务器端代码:
Page.ClientScript.RegisterStartupScript(typeof(Page), "showEditIcons", "$('.editIcon').css('display', 'block';", true);
HTML:
img id="describeProcessQ" src="assets/images/edit_icon.gif" class="editIcon" style="display: none;" alt="Describe process comments" />