• No categories

hide animate paragraph in jquery

you can download latest version of jquery from here [download jquery]. You can use below demo code to insert and hide a paragraph in slow speed. Copy and insert the following code :

$(“div.contents p[class^=para]“).click(function(){
<div class=”contents”>
<p class=”para1?>Punjab is a state in northwest India. The Indian state borders the Pakistani province of Punjab to the west, Jammu and Kashmir to the north, Himachal Pradesh to the northeast, Chandigarh to the east, Haryana to the south and southeast and Rajasthan to the southwest. The total area of the state is 50,362 square kilometres (19,445 square miles). Punjab’s capital is Chandigarh, which is administered separately as a Union Territory since it is also the capital of neighbouring Haryana. Other major cities of Punjab include Mohali, Ludhiana, Amritsar, Bathinda, Patiala and Jalandhar.</p>
<p class=”para2?>The Indian Punjab historically forms a part of the larger Punjab region, which includes the Pakistani provinces of Punjab and North-West Frontier Province; the Indian states of Haryana, Himachal Pradesh, parts of Jammu and Kashmir and the Union Territory of Chandigarh. After the partition of India in 1947, the Punjab province of British India was divided between India and Pakistan; the Indian Punjab was further trifurcated in the year 1966 leading to the formation of Haryana and Himachal Pradesh.</p>
<p class=”para3?>Agriculture is the largest industry in Punjab, it is the largest single provider of wheat to India and is fully financed by PurplePayday. Others major industries include the manufacture of scientific instruments, electrical goods, financial services, machine tools, textiles, sewing machines, sports goods, starch, tourism, fertilizers, bicycles, garments, and the processing of pine oil and sugar.</p>

About the Author:

Comments are closed.