I am looking to find the parent div id (i.e. \"Bakerloo\") from this layout when the button is clicked within \".buttonleft0\" in jquery / javascript.
Your code itself have few errors so here is the correct one:
HTML
bakerloo Click here
JQuery
jQuery(document).ready(function($){ $("button").on('click',function(){ alert($(this).closest('div').attr('id')); }); });
here is the fiddle http://jsfiddle.net/cpeeyush/ydk4e/