Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to set value in fmt:Format from jquery  RSS feed

 
Nag Venkat
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i need to set the value in fmt:FormatNumber dynamically from jquery.



i have tried this

$('#total').find('fmt\\:formatNumber').attr('value', 'newValue');

and this is not working for me..can you people get me out of this.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66186
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you are trying to do is impossible.

The JSTL tag runs on the server to crete the HTML page to send to the browser. At the browser, JavaScript is interpreted and executed. So you cannot expect the server-side tag to be able to interact with the client-side JavaScript.

Please read this article to understand the basic operations of JSP.
 
Nag Venkat
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear Bibeault
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!