I'm trying to return the idselection attribute. Every time I run it though I just get a lot of blank spaces. I've tried using the
find()
method andmap()
. I just keep getting a lot of blank spaces. The HTML below is an example of what i'm trying to get最后一块拼图
$('.mg-check.mg-checkEmpty.requireLogin').each(function() {
var data = $(this).attr('selectionid');
propVal = data;
console.log(propVal);
json.propVal = propVal;
});
}
<td class="mg-column8 pick borderRight last">
<a class="mg-check mg-checkEmpty requireLogin" id="matchupDiv" name="matchupDiv" href="createOrUpdateEntry?" selectionid="mafdafd"></a>
您的名字=属性也没有关闭引号。 – Difster