$(function() { //alert('hello');
$('.tncSelect').click(function() {
if ($(this).is(":checked")) {
var s = "=> " + $(this).val();
document.getElementById('cntr-terms').value += s.substring(s.length - 500) + '\n';
//$("#cntr-terms").val(s);
}
});
});

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="checkbox" name="optradio" id="someUniqeu" class="tncSelect" value="hello">
<textarea class="form-control" id="cntr-terms" rows="10" placeholder="الشرح ..."></textarea>
&#13;
当我发出警报();在调用函数之前...但它没有调用没有alert()..