Jump to content

Save HTML value as a Document Property


Reed Knox

Recommended Posts

I have a simple HTML table and an Input field. When a row isselected, the row header is displayed in the input field using the javascript below. The issue is that the value is not stored as a document property. How can the javascript be updated to actually store the value

 

 

HTML:

 

 

td {border: 1px #DDD solid; padding: 5px; cursor: pointer;}

.selected {

background-color: ;

color: black;

}

 

 

John

$1,000

10

 

 

Bob

$2,000

20

 

 

Mike

$3,000

30

 

 

 

 

 

 

Javascript:

 

$("#table tr").click(function(){

$(this).addClass('selected').siblings().removeClass('selected');

var value=$(this).find('td:first').html();

document.getElementById('9f251de51c354e8e92d49dec9d058ac0').value=value

});

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...