I have this form
Assuming markup will stay in same order can use next()
next()
jQuery(document).ready(function($) { $('input.maxtickets_enable_cb').change(function(){ $(this).next()[ this.checked ? 'show' : 'hide'](); }).change(); });