
Untitled
By: a guest on
Apr 15th, 2012 | syntax:
None | size: 0.71 KB | hits: 10 | expires: Never
$(function() {
$(".locateVehicle").click(function(){
$("#pollingStatus").dialog('open');
});
$("#pollingStatus").dialog({
autoOpen : false,
width : 650,
height: 450,
modal : true,
show: 'blind',
hide: 'explode',
buttons: {
background:function() {
$(this).dialog('close');
// id of car ?
}
}
});
<button class="locateVehicle" id="1">car 1</button>
<button class="locateVehicle" id="2">car 2</button>
<button class="locateVehicle" id="3">car 3</button>