标签:function children span == pre bsp UNC cti nbsp
$(".yan").click(function(){ console.log($(this).parent().parent().siblings().children("input").attr("type")) if ($(this).parent().parent().siblings().children("input").attr("type") == "text") { $(this).parent().parent().siblings().children("input")[0].type = "password"; $( this ).attr("src","images/yan2.png"); }else{ $(this).parent().parent().siblings().children("input")[0].type = "text"; $( this ).attr("src","images/yan.png"); } });
标签:function children span == pre bsp UNC cti nbsp
原文地址:https://www.cnblogs.com/sdsd123/p/11167886.html