Bonsia help


#1

here is my code:

var main = function() {
	$("#top-text").keyup(function(){
  	var Top = $(this).val();
    $(".top-caption").text(Top);
  });
};
$(document).ready(main);

It won't work, when I try to change the top caption it wont work


#2

Hi @bug_boy,

Your code works fine for me. Have you made sure to save your code by clicking the green button below the code editor, and that you're typing in the "Top text" input field and not one of the others?


#3

I feel so stupid, THANKS!! :slight_smile:


#4

@bug_boy No worries, we all make small mistakes like that a lot when we program :slight_smile:


#5

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.