I'm trying to achieve something that should be fairly simple, but it doesn't work.
There are 2 divs one one page and I want to pull the value from one into another on a link click.
Here is jsfiddle example: http://jsfiddle.net/SdWSs/2/
Here is the body code:
<div id="divone">ValueOne</div>
<input id="two">DIV two</div>
<a onclick="pullthevalue()" href="javascript:void(0);">Pull</a>
Function
function pullthevalue(){
var textValue = $('#divone').text();
$('#two').text(textValue);
}