spring mvc: How Can I give the <form:textarea /> tag a default value?

前端 未结 7 1592
悲&欢浪女
悲&欢浪女 2021-01-18 17:19

I have a problem with giving the tag a default value.
When I created a .jsp file as follow,



        
7条回答
  •  青春惊慌失措
    2021-01-18 17:43

    You can use jquery to get the model attribute value and set the value in textarea

     $( function() {
             var example = parseInt('${example}');       
             $("#bot").val(example); 
        } );
    

提交回复
热议问题