를 추출 :JQuery와 나는 이런 식으로 뭔가를 요소의 최신 ID를 얻을 수
<div id="row1">Some content</div>
<div id="row2">Some content</div>
<div id="row3">Some content</div>
<div id="row4">Some content</div>
<div id="row7">Some content</div>
<div id="row15">Some content</div>
<div id="row915">Some content</div>
<div id="row919">Some content</div>
행은 실제로 PHP 배열에서 가져온되어 지금은 예를 들어, 마지막 행의 수를 추출해야 이 경우에는 919가됩니다. (그래서 jQuery를 통해 더 많은 행을 생성하기 위해 append를 사용할 때 행 ID에 +1을 추가 할 수 있습니다.) 어떤 아이디어입니까?
'에서는 parseInt (this.id.replace ('행', ''), 10) +1 ' – adeneo