Amazing. Thanks.
I am trying to replace put the initID value into the the following string to replace the character "5" in the following statement.
if (_ProjectNumbers.indexOf($("#WebPartWPQ5 tr:eq(3)>td:eq(2)").text()) !=-1)
I tried creating a variable
var wpq = "($("#WebPartWPQ"+initId+" tr:eq(3)>td:eq(2)").text()) !=-1)";
so I could replace the original statement with
if (_ProjectNumbers.indexOf+wpq
but no dice.
Essentially the goal is to open the page, get the number and use it in another statement on the same page. Any guidance appreciated and thanks for the original response. I will study it's logic but kind of new to this level of complexity. -dave