2
jqueryのプレフィックスを削除するには?私はこのようなTRIDいるjquery idのプレフィックスを削除する方法
var selected = $(".select-student").map(function() {
return this.id;
}).get();
:
var selected = $(".select-student").map(function() {
var id = $('span[id^="stu"]').remove();
return this.id;
}).get();
私が唯一の1と2を送信したいSTU1のSTU2のような結果を取得しています..私はどのように行うことができます
<td><span id="stu1" class="reject-student ">Not Selected</span></td>
<td><span id="stu2" class="select-student ">Selected</span></td>
<td><span id="stu5" class="select-student ">Selected</span></td>
jqueryのそれ。?