如$(this).parents('input');但如果妳非要這樣做...最好妳自己在定義的時候就寫個沒用的屬性..然後獲取這個屬性裏的
value...例如:<input tagName="input" type="text"/>tagName
是自定義的屬性...然後妳這樣獲取$(this).parent().attr('tagName');
如$(this).parents('input');但如果妳非要這樣做...最好妳自己在定義的時候就寫個沒用的屬性..然後獲取這個屬性裏的
value...例如:<input tagName="input" type="text"/>tagName
是自定義的屬性...然後妳這樣獲取$(this).parent().attr('tagName');