HTML :JQuery와 쇼() 숨기기() 후
<table id="table1">
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
</tr>
<tr>
<td class="table1column1"><input type="text" id="idInput1" /></td>
<td class="table1column2"><input type="text" id="idInput2" /></td>
<td class="table1column3"><input type="text" id="idInput3" /></td>
</tr>
</table>
<button>Hide-Text-Show</button>
JQuery와 :
$(document).ready(function() {
$('button').click(function() {
$('#idInput1').hide();
$('.table1column1').text('Test');
$('#idInput1').show();
});
});
내가 이해하지 못하는 이유는 TD 요소에 텍스트를 추가 할 때 show() 메소드가 작동하지 않습니까?
감사
아래의 답변이 정확하지만, 무슨 미래에 당신이 나는 파이어 폭스 또는 개발자의 예를 들면 불을 지르고 위해 사용하는 것이 좋습니다, 자기를 위해 밖으로 찾으려면 Chrome 또는 IE의 도구 –
드디어이 솔루션을 선택했습니다 : http://jsfiddle.net/QNxyG/3/ – user1889867