I've set up this (updated) JSFiddle demonstrating what I am trying to do, but basically I think this is a situation of event bubbling. I am trying to position (in a tool tip) a button that when clicked on will change the value of the input that the tool tip is triggering on. The problem I'm seeing is the button 'Click' event is never firing. Any ideas on how to make this work?
Here is the simple code (this is using jQuery 1.7.2 and Tipsy 1.0.0a):
<input type="text" title="<button class='Action'>Add Balance</button>" name="Balance"/>
<button class='Action'>Add Other Balance</button>
$(document).ready(function() {
$('input[name="Balance"]').tipsy({
trigger: 'focus',
gravity: 'n',
html: true
});
$('button.Action').click(function() {
$('input[name = "Balance"]').val($(this).html());
});
});