Ver original<legend id="id_legend">Texto</legend>
Ver originalvar legend=$("#id_legend");legend.text("nuevo texto");