Project Bonsai


#1

Hello All. Need help with my Bosai Project on jQuery course.

I coded it as follows:

var main = function() {
$('#top-text').keyup(function() {
$('#top-text').val();
$('.top-caption').text($(#top-text').val());
)};
$('#bottom-text').keyup(function() {
$('#bottom-text').val();
$('.bottom-caption').text($(#bottom-text').val());
)};
$('#image-url').keyup(function() {
$('#image-url').val();
$('.src').aatr($(#bottom-text').val()
)};
}
$(document).ready(main);

Something seems wrong. Can someone pls. help debug it.


#2

@yemmyse,

Have a close look at

$('.src').aatr($(#bottom-text').val()