Is there a way to allow users to drag each character they type on the screen individually?
I'm trying to figure out how to access and manipulate each character the user enters.
In the example below, I can manipulate each character of the word "placemark." How can I do this for user-inputted text?
HTML
<!doctype html>
<html>
<head>
<title>My project</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<div class="character">P</div>
<div class="character">l</div>
<div class="character">a</div>
<div class="character">c</div>
<div class="character">e</div>
<div class="character">m</div>
<div class="character">a</div>
<div class="character">r</div>
<div class="character">k</div>
<br><br>
<form action="demo_form">
Word: <input type="text" name="fname"><br>
</form>
</body>
</html>
CSS
.character {
width: 10px; height: 15px;
font-size: 50px;
display: inline;
}
Jquery
$( init );
function init() {
$('.character').draggable();
}