This topic is locked

Assigning unique value to id

10/13/2012 06:51:11
PHPRunner General questions
author

Hi
In php if i was writing a table i could assign a unique value to a field as follows

echo " <table> <Tr id="education".$value."">.......

//value is a unique assigned value
I am using javasript and i wand to hide id's on the page. I assigned a employment var as below and will add a unique number to that var. How do i assign that var to the id element below, and not assign a text value
var val = '00764'; //this will be the key value

$("tr[id='Employment'+val]").hide();
Thanks
Richard

C
cgphp 10/13/2012

Could you make an example showing what would be the result?