Custom Camel Case by jquery

Problem:some times name field in camel case and also first letter in each word is big like 200% or any custom size.

then the below program can help to do that.

solve:

$(document).ready(function(){

var words = $(‘#user-name’).text().split(‘ ‘);

var html = ”;

$.each(words, function() {

html+='[span_style=”font-size:custom-px;”]’+this.substring(0,1)+'[/span]’+'[span_style=”font-size:custom-px;”]’+this.substring(1)+'[/span]’+ ‘ ‘;

});

html=html+'[span_style=”font-size:custom-px;”]’+”‘s”+'[/span]’;

$(‘#user-name’).html(html);

});

The actual code is given in following picture :

Custom Camel Case