JavaScript Keeping button pressed using sessions in JSP keeping the button pressed

I coded as screenshot to get data from the MySQL database.

enter image description here

I added JavaScript codes to change Accept button to Accepted when clicked and Decline button to Declined when clicked.

I want to keep those selections in the web page when User opens page again.

How to Implement this functionality?

    <script>
       function clickabtn(){
           var el = document.getElementById('btnacc');
           if(el.textContent=="Accept"){
             el.textContent="Accepted";  
           }else{
               el.textContent="Accept";
           }
       }
   </script>

   <script>
       function clickdbtn(){
           var el = document.getElementById('btnde');
           if(el.textContent=="Decline"){
             el.textContent="Declined";  
           }else{
               el.textContent="Decline";
           }
       }
   </script>
Answer:1

Let's take an example in javascript var b = function(){ var key = {}; var result = []; var a = [{people: "people1"}, {people: "people2"}, {people: "...

Let's take an example in javascript var b = function(){ var key = {}; var result = []; var a = [{people: "people1"}, {people: "people2"}, {people: "...

  1. object value javascript mdn
  2. get value object javascript
  3. key value object javascript
  4. change value object javascript
  5. add value object javascript
  6. set value object javascript
  7. update value object javascript
  8. default value object javascript
  9. replace value object javascript
  10. find value object javascript
  11. check value object javascript
  12. delete value object javascript
  13. remove value object javascript
  14. copy value object javascript
  15. max value object javascript
  16. input value object javascript
  17. assign value object javascript
  18. push value object javascript
  19. return value object javascript
  20. access value object javascript

I'm having some issues accessing data from a tsv file. the data is on the 3rd row of the tsv. I want to access the name and print in on screen. box1.bar1 box1.bar2 box1.bar3 box1.bar4 box1....

I'm having some issues accessing data from a tsv file. the data is on the 3rd row of the tsv. I want to access the name and print in on screen. box1.bar1 box1.bar2 box1.bar3 box1.bar4 box1....

  1. access data from s3 bucket
  2. access data from pandas dataframe
  3. access data from table matlab
  4. access data from observable angular
  5. access data from docker container
  6. access data from method vue
  7. access data from another sheet in excel
  8. access data from broken phone
  9. access data from old hard drive
  10. access data from dictionary python
  11. access data from phone with broken screen
  12. access data from pointer c++
  13. access data from struct matlab
  14. access data from datatable c#
  15. access data from object javascript
  16. access data from json object
  17. access data from api
  18. access data from json file
  19. access data from app.config c#
  20. access data from child component vue

i'm trying to use angular directives with prototype or object initializer. Examples: Prototype: 'use strict'; var Example = function Example($scope, $elem) { this.$scope = $scope; this.$elem = $...

i'm trying to use angular directives with prototype or object initializer. Examples: Prototype: 'use strict'; var Example = function Example($scope, $elem) { this.$scope = $scope; this.$elem = $...

  1. using angular directives
  2. @ in angular directive
  3. u003d in angular directive scope
  4. angular use directive from another module
  5. use directive angular 6
  6. angular use directive on component
  7. use directive angular 7

i'm trying to fetch data from oracle database and store it into an array using JavaScript . but the output I'm getting "undefined". how can i fix it?Can anyone help me. <!DOCTYPE HTML PUBLIC "-//...

i'm trying to fetch data from oracle database and store it into an array using JavaScript . but the output I'm getting "undefined". how can i fix it?Can anyone help me. <!DOCTYPE HTML PUBLIC "-//...

  1. fetching data from api
  2. fetching data from api react
  3. fetching data from an api using react/redux
  4. fetching data from firebase
  5. fetching data from database in java
  6. fetching data from multiple tables in jpa
  7. fetching data from nested table in oracle
  8. fetching data from cdhdr and cdpos table
  9. fetching data from database
  10. fetching data from database in php
  11. fetching data from database in django
  12. fetching data from firebase android
  13. fetching data from api in angular
  14. fetching data from json file
  15. fetching data from two tables in sql
  16. fetching data from api in react native
  17. fetching data from api in flutter
  18. fetching data from database in laravel
  19. fetching data from multiple tables in sql
  20. fetching data from mongodb