Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to disabled value when button is clicked?  RSS feed

 
Den Echeng
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[Post replaced -- see next post]
 
Den Echeng
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dn As wrote:
I'm currently trying to create a Jtable in a JSP application.
[When the orange-button is clicked,there will be a Discontinue-button show under the Date Approval.And the Date Discontinued will also be updated to current date and time.]
photo

But the problem is,how can i change the code in my PHP and JS so that the "Date Discontinued :" will show a "-" or nothing when the orange-button is unclicked?

Here are the sample of my JS code:



And here is the function for discontinue in PHP:



I have try to rewrite the js code, and search the solving methods for any similar problems posted online but nothing works for me.
Somebody says to try
but it also not working for my case.  
Any help would be greatly appreciated  
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!