최신의 브라우져에서는 HTML5를 지원하기 때문에 placeholder가 문제없이 동작이 되지만
HTML지원이 되지 않는 브라우져에서 placeholder를 지정해도 동작이 되지 않는 문제가 있습니다.
이에 대한 대안으로
jquery.placeholder.js를 이용하면 해결을 할 수가 있습니다.
jquery.placeholder.js는 아래에서 받으시면 됩니다.
https://github.com/mathiasbynens/jquery-placeholder
* 적용방법은
1. 다운로드한 jquery.placeholder.js를 js/jquery.placeholder.js 와 같이 업로드 후
2. 글 작성 스킨 또는 ./head.sub.php에
<script src="<?php echo G5_JS_URL ?>/jquery.placeholder.js"></script>
와 같이 추가합니다.
또한
<script type="text/javascript">
$(function() {
// Invoke the plugin
$('input, textarea').placeholder();
// That’s it, really.
});
</script>
도 추가합니다.
3. 폼 입력 부분에
<input type="text" name="wr_subject" value="<?php echo $subject ?>" placeholder="제목을 입력해 주세요.">
<textarea rows="5" cols="30" name="wr_tips" placeholder="팁 정보를 입력해 주세요."></textarea>
와 같이 placeholder를 작성하시면 됩니다.
자세한 정보는
https://github.com/mathiasbynens/jquery-placeholder
에서 다운받은 파일에 demo.html을 참조 하시기 바랍니다.
이미 알고 계신 팁일지 모르겠군요.^^
도움이 되시길 바랍니다.
감사합니다.
HTML지원이 되지 않는 브라우져에서 placeholder를 지정해도 동작이 되지 않는 문제가 있습니다.
이에 대한 대안으로
jquery.placeholder.js를 이용하면 해결을 할 수가 있습니다.
jquery.placeholder.js는 아래에서 받으시면 됩니다.
https://github.com/mathiasbynens/jquery-placeholder
* 적용방법은
1. 다운로드한 jquery.placeholder.js를 js/jquery.placeholder.js 와 같이 업로드 후
2. 글 작성 스킨 또는 ./head.sub.php에
<script src="<?php echo G5_JS_URL ?>/jquery.placeholder.js"></script>
와 같이 추가합니다.
또한
<script type="text/javascript">
$(function() {
// Invoke the plugin
$('input, textarea').placeholder();
// That’s it, really.
});
</script>
도 추가합니다.
3. 폼 입력 부분에
<input type="text" name="wr_subject" value="<?php echo $subject ?>" placeholder="제목을 입력해 주세요.">
<textarea rows="5" cols="30" name="wr_tips" placeholder="팁 정보를 입력해 주세요."></textarea>
와 같이 placeholder를 작성하시면 됩니다.
자세한 정보는
https://github.com/mathiasbynens/jquery-placeholder
에서 다운받은 파일에 demo.html을 참조 하시기 바랍니다.
이미 알고 계신 팁일지 모르겠군요.^^
도움이 되시길 바랍니다.
감사합니다.
댓글 1개
11년 전
1111
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 5102 | 12년 전 | 3519 | ||
| 5101 | 12년 전 | 2564 | ||
| 5100 |
senseme
|
12년 전 | 1854 | |
| 5099 |
senseme
|
12년 전 | 1545 | |
| 5098 |
senseme
|
12년 전 | 1537 | |
| 5097 |
senseme
|
12년 전 | 1295 | |
| 5096 |
senseme
|
12년 전 | 1692 | |
| 5095 |
senseme
|
12년 전 | 1362 | |
| 5094 |
senseme
|
12년 전 | 2429 | |
| 5093 |
senseme
|
12년 전 | 1639 | |
| 5092 |
senseme
|
12년 전 | 2237 | |
| 5091 |
senseme
|
12년 전 | 2139 | |
| 5090 |
senseme
|
12년 전 | 1770 | |
| 5089 |
senseme
|
12년 전 | 4549 | |
| 5088 |
senseme
|
12년 전 | 2682 | |
| 5087 |
senseme
|
12년 전 | 2836 | |
| 5086 |
senseme
|
12년 전 | 1248 | |
| 5085 |
senseme
|
12년 전 | 8519 | |
| 5084 |
senseme
|
12년 전 | 3328 | |
| 5083 |
senseme
|
12년 전 | 2681 | |
| 5082 |
senseme
|
12년 전 | 5332 | |
| 5081 |
senseme
|
12년 전 | 3398 | |
| 5080 | 12년 전 | 13306 | ||
| 5079 | 12년 전 | 3911 | ||
| 5078 | 12년 전 | 1470 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기