<div id="test">
<button disabled >test A</button>
<ul>
<li>|1</li>
<li>asdf</li>
<li>asdf</li>
<li>|1<button disabled >test B</button></li>
<button disabled >test C</button>
</ul>
</div>
<script>
$(document).ready(function(e) {
$('#test [disabled]').removeAttr('disabled').html()
html = $('#test').html().replace(/\|1/g,"|0");
alert(html);
});
</script>
是這樣嗎?