< Prev Demo jQuery eTruncate Demo #5 Next Demo >

eTruncate has been initialized with the following code:
$("#content").eTruncate({"showText" : "Read more..."});

  1. Show the current plugin version:
    alert($("#content").eTruncate("instance").version); Execute
  2. Show the current plugin status:
    alert($("#content").eTruncate("instance").status); Execute
  3. Show the connected elements:
    $("#content").eTruncate("instance").showElements(); Execute
  4. Hide the connected elements:
    $("#content").eTruncate("instance").hideElements(); Execute
  5. Toggle the connected elements:
    $("#content").eTruncate("instance").toggleElements(); Execute
  6. Creates a border around the instance container:
    $("#content").eTruncate("instance").container.css("border", "2px solid red"); Execute

Herman Melville - Moby Dick

But being in a great hurry to resume scolding the man in the purple Shirt, who was waiting for it in the entry, and seeming to hear nothing but the word "clam," Mrs. Hussey hurried towards an open door leading to the kitchen, and bawling out "clam for two," disappeared.

"Queequeg," said I, "do you think that we can make out a supper for us both on one clam?"

However, a warm savory steam from the kitchen served to belie the apparently cheerless prospect before us. But when that smoking chowder came in, the mystery was delightfully explained. Oh, sweet friends! hearken to me. It was made of small juicy clams, scarcely bigger than hazel nuts, mixed with pounded ship biscuit, and salted pork cut up into little flakes; the whole enriched with butter, and plentifully seasoned with pepper and salt. Our appetites being sharpened by the frosty voyage, and in particular, Queequeg seeing his favourite fishing food before him, and the chowder being surpassingly excellent, we despatched it with great expedition: when leaning back a moment and bethinking me of Mrs. Hussey's clam and cod announcement, I thought I would try a little experiment. Stepping to the kitchen door, I uttered the word "cod" with great emphasis, and resumed my seat. In a few moments the savoury steam came forth again, but with a different flavor, and in good time a fine cod-chowder was placed before us.

We resumed business; and while plying our spoons in the bowl, thinks I to myself, I wonder now if this here has any effect on the head? What's that stultifying saying about chowder-headed people? "But look, Queequeg, ain't that a live eel in your bowl? Where's your harpoon?"

...