It's called a hard drive adapter. You can switch it to the new drive. It's held on by screws.
If you want another, search eBay for HP laptop hard drive adapter. HP can probably sell you one for less than $10. Search Google for HP parts, go to the genuine HP site and search for your model. Look at the parts list for your model until you find it. It shouldn't take long...