Please refer
http://jsfiddle.net/2dJAN/6/

&lt;div class="btn-post"&gt;button text&lt;/div&gt;
&lt;div id='test'&gt; &lt;/div&gt;


$(document).ready(function(){
 $('#test').html($('.btn-post').text().replace(" ", "-"));
});


I hope this will helpful to you to achieve your request.

jQuery - Adding a hyphen inside string
We registered for a roasting pan and it has been sitting around taking up a lot of space. Do I really need this or is this a "one-tasker" as Alton Brown would say?

I understand that the roasting rack allows the juices to drip down. I've had lots of success roasting chickens just in a baking pan with 2" high sides.
