<script>
function stopPropagation(e) {
if (e.stopPropagation)
e.stopPropagation();
else
e.cancelBubble = true;
}
$(document).bind('click', function () {
$('.visitorInput').hide();
$(".visitorTextBox").show()
});
$('.visitorEditBtn').bind('click', function (e) {
stopPropagation(e);
$(this).parents(".visitorTextBox").hide()
$(this).parents().prev(".visitorInput").show().focus()
});
</script>
网友评论