jQuery的问题输出不显示 [英] jquery problem output not show

查看:101
本文介绍了jQuery的问题输出不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1

<script  type="text/javascript" >
$(document).ready(function(){

$(".edit_tr").click(function()
	{
	
		var id= $(this).attr("id");
		
		//("#sname_"+id).hide();
		//("#last_"+ID).hide('slow');
		alert("dd");
		alert("#sname_"+id);
		$("#name_"+id+'"').show('slow');
		//$("#q_"+ID).show();
		//$("#p_"+ID).show();
         });
});

此代码将输出"dd"&警报框中的ID名称,例如#name_102"]
2

this code give output "dd" & name of id like "#name_102" in alert box]
2

<script  type="text/javascript" >
$(document).ready(function(){

$(".edit_tr").click(function()
	{
	
		var id= $(this).attr("id");
		
		("#sname_"+id).hide();
		("#last_"+ID).hide('slow');
		alert("dd");
		alert("#sname_"+id);
		$("#name_"+id+'"').show('slow');
		//$("#q_"+ID).show();
		//$("#p_"+ID).show();
         });
});


如果我这样做了,那么输出什么也不是为什么?????

code2请问我什么问题


if i do that then output is nothing why?????

what problem with code2 pls tell me

推荐答案

(文档).ready(
(document).ready(function(){


( . edit_tr").click( var id =
(".edit_tr").click(function() { var id=


( this ).attr(" ); // (#sname _" + id).hide(); // (#last _" + ID).hide('slow'); alert(" ); alert(" + id);
(this).attr("id"); //("#sname_"+id).hide(); //("#last_"+ID).hide('slow'); alert("dd"); alert("#sname_"+id);


这篇关于jQuery的问题输出不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆