$(document).ready(function()
{
$('#comment textarea').click(function()
{
if (this.value == this.'Post a comment')
{
this.value = '';
}
});
$('#comment textarea').blur(function()
{
if (this.value == '')
{
this.value = this.'Post a comment';
}
});
});
나는이 스크립트 파일을 PHP 파일에 붙여두고 있습니다. 그러나 작동하지 않습니다. 텍스트 영역의 기본값은 주석 게시입니다. 이 스크립트는 텍스트 영역의 값을 클릭시 null로 변경 한 다음 blur에서 주석을 게시하기 위해 다시 변경해야합니다.jquery 왜이 기능이 작동하지 않습니까?
는'this.value ==이 comment''을 this.'Post은 ---이 무엇인가!? – zerkms