Hi l0ad3dr3v0lv3r,

why not to add parameter to pass "this" to the function open_close():


function open_close( element ){ var txt = $( element ).text(); if(txt === "read more"){ ...