It is fine to travel in Jordan in jeans most of the time, and you can, of course, wear them in Petra as well, in case this is the piece you never leave your home without, but as the visit of Petra requires quite a lot of walking, we think hiking trousers are a much better choice.