The html produced in by the view:
<div class="row-fluid" style="background-color: #E6E6FA;"><div class="span3">
<p>2. What is the nature of your affiliation with the African university?</p>
</div>
<div class="span9">
<table id="survey_a2" class="generic-widget" name="a2">
<tbody>
<tr>
<td>
<input id="a21" type="radio" value="1" name="a2">
<label for="a21">Permanent and full-time university staff member</label>
</td>
</tr>
<tr>
<td>
<input id="a22" type="radio" value="2" name="a2">
<label for="a22">Permanent and part-time university staff member</label>
</td>
</tr>
<tr>
<td>
<input id="a23" type="radio" value="3" name="a2">
<label for="a23">University staff member appointed on a fixed-term contract</label>
</td>
</tr>
<tr>
<td>
<input id="a24" type="radio" value="4" name="a2">
<label for="a24">Post-doctoral fellow</label>
</td>
</tr>
<tr>
<td>
<input id="a25" type="radio" value="5" name="a2">
<label for="a25">Research fellow / teaching fellow / visiting scholar / extraordinary professor </label>
</td>
</tr>
<tr>
<td>
<input id="a26" type="radio" value="6" name="a2">
<label for="a26">Officially retired but still assisting the university</label>
</td>
</tr>
<tr>
<td>
<input id="a27" type="radio" value="7" name="a2">
<label for="a27">Other</label>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row-fluid" style="background-color: #E6E6FA;">
<div class="span12">
<div id="a2_other" style="display: none;">
<div class="span3">
<p> Please specify 'other'</p>
</div>
<div class="span9">
<p>
<input id="survey_a2_other" class="string" type="text" value="" style="width:60%;" name="a2_other">
</p>
</div>
</div>
</div>
</div>
The javascript part:
jQuery(document).ready(function(){
jQuery('#a2_other').hide();
jQuery('#survey_a2').change(function(){
if(jQuery('#a27').attr('checked')){
jQuery('#a2_other').show();}
else {jQuery('#a2_other').hide();}});
});
</script>
#a2_other is hidden but when #a27 is clicked, it is not recognised by jQuery and the field stays hidden.
This (and other similar constructs in the form) was working perfectly in an older version of the app - not so with the trunk version.
I have not been able to determine the exact course of the problem.
In the newer version I replicated the Welcome app and copied the models, controller and default/index.html from the older app.
Regards
Johann