Wednesday, 24 June 2015

Jquery Remove


Jquery Remove Real Life Application
Jquery Remove ka hriatthiam dan tlem lo tarlang ve leh zuai teh ang. Kan HTML page-ah hian item then khat eng emaw hun chhung lek tana thuhruk or paih (remove) te kan duh chang a awm thei ang. Chutiang hunah chuan Jquery hmanga chinfel hi a zangkhaiin a rang em em a, chuvangin jquery hmanga remove dan kan sawi ang. A hmasa bera kan en tur chu Jquery remove() method hi a ni ang. He method hian selector leh a chhunga awm zawng zawng (child selectors) te a paih vek thei a. HTML tag pangai ho hi selector an ni vek a, chutihrualin keimahniin class leh id hmangin selector kan siam thei bawk a ni. Entirnan kan HTML head, a class tana .lu kan hman chu lo paih duh ta ila, jquery hmang chuan:

$(".lu").remove(); tih te mai hmang hian head tag, .lu class chu kan paih hmak thei a ni. HTML tag pangai H1 zawng kan paih duh chuan:
$("H1").remove(); tih leh mai tur a ni ang. Hetihrualin hian .lu class la hmang tho si khan method dang empty(); hmangin a thu zawng kha kan paih thei bawk a, chu chu hetiang hian hman tur a ni ang:
$(".lu").empty();
Hetianga kan tih hian a chhung thu chauh kha kan dahruak tihna a ni a, a element chu a lo awm reng tho a ni. Empty hi thu awm tawhsa thudang hmanga thlak kan duhin a awm tawhsa dahchhuah nana a remchang hle a ni.
Tin(Bible style-in), A thu chauh awm tura kan duh chuan unwrap(); method kan hmang thei a ni.