So let's assume that I have a div with some value in it:
<div id="Good">
<div id="Test4">
<div class="hidden">
<div class="weight">147</div>
Then let's say I wanted to use jQuery to append the whole test4 div to another div (with the same structure) called "bad" if the value was less than 100?
Right now I have my append in order but I control it with onClick:
<script type="text/javascript">
$(document).ready(function() {
$('#Test4').click(function() {
$('#Test4').appendTo('#bad')
});
});
</script>
If this isn't possible could someone recommend a way to do this? Thanks!