<fmt:formatNumber value="xxx" groupingUsed='true'/>


이게 xxx를 3자리마다 쉽표 찍어주겠다는건데

저 xxx를 변수로 넣을순 없음?


그러니까 input에서 입력받은걸 keyup 해가지고 제깍 제깍 넣을수있게..


일단 대충 코드는 이럼.


..중략..

<input type="text" class="form-control" id="addprice" name="addprice" value="0">


<label class="g6" id="addprice_text">원 </label>

..중략..

<script type="text/javascript">
    $("#addprice").keyup(function(){
        var addprice = document.getElementById("addprice");
        addprice = addprice.value;
        var a = document.getElementById("addprice");
        $("#addprice_text").html("<fmt:formatNumber value='"+addprice+"'groupingUsed='true'/>");
    });
    </script>



톰켓 whitespace 에러가 나기도함.


이거만 지금 두시간째 머리 싸매는중임;;