I'm trying to get jQuery onblur to work in Google Apps Script HtmlService. I can get the HTML to render and everything, but the onblur isn't working. I'm just doing a simple one to get it working first, onblur the input text and change the color of the div background.
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('#color').blur(function(){
$('#container').css('background-color','#ffffff');
});
});
</script>
<label>Background Color: </label><input type="text" size="30" id="color" name="color" /><br />
<div id="container" style="background-color:#9fc1f1;">
test
</div>