[eluser]dinisptc[/eluser]
hello, iam trying to onclick on one div send the content to another div
i can send the content from one div to another
the problem now its to send only the one that its clicked on
Code:
[removed]
document.getElementById('there').appendChild(
document.getElementById('eee')
);
Code:
<form acti method="post">
<h3>Contractors</h3>
<p>Choose some existing contractors in the left column by clicking their name or delete in the right column by the same way</p>
<div id="here" class="blocBlanc l40" scroll">
<h4>Contractors</h4>
<ul>
<li id="eee" ><strong>Firm 5</strong>
<ul class="liste">
<li><a href="addContractorToProject?uid=<?php //echo $contactUID; ?>">Contractor Firstname Name</a></li>
<li><a href="addContractorToProject?uid=<?php //echo $contactUID; ?>">Contractor Firstname Name</a></li>
<li><a href="addContractorToProject?uid=<?php //echo $contactUID; ?>">Contractor Firstname Name</a></li>
<li><a href="addContractorToProject?uid=<?php //echo $contactUID; ?>">Contractor Firstname Name</a></li>
</ul>
</li>
<li><strong>Firm 2</strong>
<ul class="liste">
<li><a href="addContractorToProject?uid=<?php //echo $contactUID; ?>">Contractor Firstname Name</a></li>
</ul>
</li>
<li><strong>Firm 3</strong>
<ul class="liste">
<li><a href="addContractorToProject?uid=<?php // echo $contactUID; ?>">Contractor Firstname Name</a></li>
<li><a href="addContractorToProject?uid=<?php // echo $contactUID; ?>">Contractor Firstname Name</a></li>
</ul>
</li>
</ul>
</div>
<div id="there" class="blocBlanc l40">
<h4>Project contractor</h4>
<ul>
<li><strong>Firm 1</strong>
<ul class="liste">
<li><a href="deleteContractorFromProject?uid=<?php //echo $contactUID; ?>">Contractor Firstname Name</a></li>
</ul>
</li>
<li><strong>Firm 2</strong>
<ul class="liste">
<li><a href="deleteContractorFromProject?uid=<?php //echo $contactUID; ?>">Contractor Firstname Name</a></li>
</ul>
</li>
</ul>
</div>
<div class="clear"></div>
<input type="submit" class="submit" value="next step" />
</form>