i have button set up like:
<button id="invOn2" style="float: left;">Item 2</button>
the button is inside a dialog, and i am trying to change the title of the button as the dialog is being opened:
$('#invOn2').button( "option", "label", "shwaf");
this isnt working, what is wrong?
the suggestions havent worked as of yet, im going to elaborate on the structure of what im doing:
//jquery setup
$(function() {
$('#invOnBox').dialog({
autoOpen: false,
resizable: false,
height: 350,
width: 300,
});
$('#invOnButton').click(function() {
$('#invOn1 button').html('shwaf');
$('#invOnBox').dialog('open');
return false;
});
});
//the invDialog and inner button
<div id="invOnBox" title="Inventory">
<button id="invOn1" style="float: left;">Item 1</button>
</div>
//the invOnButton
<button id="invOnButton" style="float: left;">Inventory</button>
thanks!