text span example Example 1: set span text $("#spanID").text('your text'); Example 2: how to write <span></span>