Needing help getting $(this).find to work.
Hi, I'm having problems getting $(this).find('.thumbs-up').html(data + status); to write to the element. any suggestions would be helpful. I'm trying to use this in Cordova so I can't have any php on my page so I have to call everything via ajax. I'm trying to make and up vote and down vote system. Thanks.
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<div class="thumbs-count">
<div class="thumbs-up"></div>
</div>
<div class="thumbs-count">
<div class="thumbs-up"></div>
</div>
</body>
</html>
<script>
$(document).ready(function() {
$.each(".thumbs-count", function() {
$.get("backend/thumbs.php", function(data, status){
$(this).find('.thumbs-up').html(data + status);
});
});
});
</script>