获取当前操作元素的name、id

var id = $(this).attr("id");

var id = $(this).attr("name");