A moderate intensity earthquake measuring 5.1 on the Richter scale jolted the Kangra valley today. The epicenter of the earthquake was near the Dhauladhar ranges between Kangra and Chamba.