The jQuery plugin used to transform Pinyin with Chinese character
<script type="text/javascript" charset="utf-8" src="jquery.js"></script>
<script type="text/javascript" charset="utf-8" src="jquery.pinyin.js"></script>
var pinyin = $.Pinyin({short:false, value:"你好吗"});
result for it: NiHaoMa
var pinyin = $.Pinyin({short:true, value:"你好吗"});
result for it: NHM