jquery - Re Positioning html text -


i re positioning <em> tag in label field using jquery

from: <label><em>*</em> name</label>   to: <label>name <em>*</em></label> 

also check label contain <em> tag or not?

thanks in advance.

jsfiddle> http://jsfiddle.net/74gp2/

$('label em').remove(); $('label').append('<em>*</em>'); 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -