emcee22
emcee22

Reputation: 1889

Save input value

Ok I have the following: http://jsfiddle.net/RaWF7/

When I click on Save I want my saveFunction to save the value that is inside the input.

function saveFunction(){
    calculator.result.value
 }

I know i am going to feel stupid after this:)

<li><a href="#" style="text-decoration:none; color:black;" onClick="saveFunction()">Edit</a></li>

Upvotes: 0

Views: 166

Answers (1)

Minko Gechev
Minko Gechev

Reputation: 25682

To save the value within the clipboard you can use this library: https://github.com/jonrohan/ZeroClipboard

Currently because if security issues the manipulation of the clipboard using JavaScript is not allowed (at least it's not cross-browser).

Upvotes: 1

Related Questions