How to constrain joint when using two bone IK?

I thought JointTargetLocation is for shoulder not elbow, i was totally misunderstood. now it works perfectly! Thank you, you saved me a week.