Thanks a million! You’re a lifesaver!
You can do this with Javascript by listening to the “change” event. jQuery also provides a method, like:
$('.field-class').change(function(e){
//Do stuff on field change
});
Note that this event provides a basic change event for input fields and you need more for other types of fields, or if you want your button to show immediately when someone starts typing. You can check out this thread on Stackoverflow: http://stackoverflow.com/questions/6458840/on-input-change-event
The loop you’re using should work. Tested a simplified version of your code. Are you sure there are no downloads present?
<?php if( have_rows('downloads') ): ?>
<?php while( have_rows('downloads') ): the_row();
echo 'Whoohoo! A download!';
?>
<?php endwhile; ?>
<?php else:
echo 'No downloads found';
endif; ?>
EDIT — Nevermind! Seems that the editor of this website replaces quotes.
It looks like you’re using sloped quotes ‘’, and you should use regular quotationmarks like ” or “”. This type of thing occurs sometimes when you copy code from a website. Could very well be the problem!