How do I write if I want to pass two data item
In this example I only pass one key value pair
if (type == "opening")
{
myID = bookingItem.Objectid + "_" + bookingItem.VesselID + '_1';
$('#' + myID).live('click', function (e)
{
$("#dlgBooking").data("id", myID).dialog({
width: 230
});
});
}
but if I want to pass a second key, value pair.
So my first key, value pair is "id",myID and my second key,value pair is
"fullid",fullID
How do I write this ?
if (type == "opening")
{
myID = bookingItem.Objectid + "_" + bookingItem.VesselID + '_1';
fullID = bookingItem + "_" + bookingItem.VesselName + "_open";
$('#' + myID).live('click', function (e)
{
$("#dlgBooking").data("id", myID).dialog({
width: 230
});
});
}
//Tony