This is the code I'm trying to get working.
var inputText = $('<input>', {
type: 'text',
name: id,
onclick: function() {
$('#' + nextQuestion).show();
}
});
However, when I inspect the DOM and the resulting jQuery object, the onclick method is null. Do I have the syntax wrong?