Allow target to accept something other than an ID

Was working with this and found myself wanting to use something other than an ID, when I already had some elements referenced. I kept the ability to pass a string if you wish to continue to use the ID as well.