When user selects an option, it displays 0. I want it to display '' instead of 0. But the user may enter in 0 if they wish. Does anyone know how this can be done?
To select an option in the fiddle, click on open grid and select one of the 3 options '3', '4' or '5'. When you selected an option it will display a textbox below which says '0'. I want it to be blank. The user can enter in 0 if they wish but the textbox must start of blank.
I believe the 0 is caused because there is no answers button (A, B, C...), selected so it displays 0. Below is code which is causing this:
var $this = $(this);
var context = $this.parents('.optionAndAnswer');
Jsfiddle application can be accessed here