problematic329
IS-IT--Management
Is there a way to compare an attribute value to a variable? For example I have the path:
/employees/employee[@id='1']/name
But what if I do not know the value for the attribute id or want to change this by modifying a variable in javascript. I've tried:
var number = 1;
/employees/employee[@id=number]/name
This does not seem to work.
Any assistance is greatly appreciated!
/employees/employee[@id='1']/name
But what if I do not know the value for the attribute id or want to change this by modifying a variable in javascript. I've tried:
var number = 1;
/employees/employee[@id=number]/name
This does not seem to work.
Any assistance is greatly appreciated!