I have successfully hidden fields in normal add/edit pages by adding id tags in the html and then using javascript in the OnLoad event to programatically show or hide the field e.g. where I am showing or hiding a field where I enter a date depending on whether an "enable" checkbox is checked - I have done this:
if(!$('#alarmflagcheck').is(':checked')) $('#alarmdaterow').hide();
$('body').delegate('#alarmflagcheck', 'click', function () {
$("#alarmdaterow").toggle(this.checked);
});
I can't use this trick directly in the inline add/edit on the list page though as the id tags need to be unique. Phprunner gets round this itself in various places by appending a number to id tags where they are repeated in grid rows and then the jquery .each method can be used to iterate though the set of id tags.
Anyone got any suggestions on how I can make this work for inline edit/add?
(BTW I was only using .delegate in that example as I was looking ahead to making it work on the inline add/edit)