Q&A
- HTML/JS/CSS/jQuery/Ajax Áú¹®°ú´äº¯
¿¢¼¿ÀÇ ³»¿ëµéÀ» º¹»çÇؼ input¿¡ ¼ø¼´ë·Î ºÙ¿©³Ö±â | |||||
±Û¾´ÀÌ | ÀÔÄÚµù | ³¯ Â¥ | 19-09-24 11:08 | Á¶ ȸ | 2868 |
---|---|---|---|---|---|
°£ÆíURL |
https://phpschool.com/link/qna_html/297977
|
||||
»çÁø°ú °°ÀÌ µÇ¾îÀÖ´Â Æû°ú ¿¢¼¿ÀÌ ÀÖ°í
º¹»çÇؼ ºÙ¿©³ÖÀ¸¸é ³»¿ëÀÌ ÀÚµ¿À¸·Î ÀÔ·ÂÀÌ µÇ°Ô²û ÇÏ°í½Í½À´Ï´Ù. ã¾Æº¸¸é ÀÖÀ»°Å °°Àºµ¥ ¹¹¶ó °Ë»öÇؾߵÉÁö ¸ô¶ó¼ Áú¹®µå·Áº¾´Ï´Ù... ¤Ì¤Ì
|
Àüü´ñ±Û¼ö 5
-
¾È³ç¼¼»ó 19-09-25 19:24
Áú¹®ÀÚ°¡ Áú¹® ÇØ°á¿¡ µµ¿òÀÌ µÇ¾î ¼±ÅÃÇÑ ´äº¯ÀÔ´Ï´Ù.
¼Ò½ºº¸±â
-
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<div><input type="text" name="price[]" class='price''></div>
<div><input type="text" name="price[]" class='price''></div>
<div><input type="text" name="price[]" class='price''></div>
<div><input type="text" name="price[]" class='price''></div>
<div><input type="text" name="price[]" class='price''></div>
<script type="text/javascript">
<!--
$(".price").bind("paste", function(e){
e.preventDefault();
if (window.clipboardData) {
var clipText = window.clipboardData.getData('Text');
} else if (e.originalEvent.clipboardData) {
var clipText = (e.originalEvent || e).clipboardData.getData('text/plain');
}
clipRows = clipText.split(String.fromCharCode(13));
var x = $(".price").length;
for (i=0; i<x; i++) {
if(i > clipRows.length) {
return false;
}
var v = clipRows[i].split(String.fromCharCode(9));
$(".price").eq(i).val(v);
}
});
//-->
</script>
https://stackoverflow.com/questions/1095131/paste-excel-data-into-html-table ¿©±â¸¦ Âü°í·Î Çؼ ¸¸µé¾î ºÃ½À´Ï´Ù. -
ÀÔÄÚµù 19-09-25 20:14
¼Ò½ºº¸±â
-
°¨»çÇÕ´Ï´Ù..
ÀúÀÇ ±¸±Û¸µ ½ºÅ³ÀÌ ºÎÁ·Çϴٴ°ÍÀ» ´À³¢¸ç....
-
Á긮¿¤ 19-09-24 11:16
¼Ò½ºº¸±â
-
http://jsfiddle.net/duwood/sTX7y/
ÀÌ ¿¹Á¦¸¦ Ä¿½ºÅ͸¶ÀÌ¡ÇÏ¸é µÉ°Íµµ °°Àºµ¥¿ä;; -
ÀÔÄÚµù 19-09-24 11:24
¼Ò½ºº¸±â
- Á»´õ °£ÆíÇѰŠã¾Æº¸°í ¾øÀ¸¸é... ÀÌ ¹æ¹ýÀ¸·Î. Çؾ߰ڳ׿ä.. ¤Ì¤Ì
1 2 3 4 5 6 7 8 9 10