jquery using confirm box

$(‘.drop-cross-img’).live(“click”, function(){ var cross_img = $(this); var item_id = cross_img.attr(‘alt’); var item_tbl = cross_img.attr(‘rel’); //alert(item_tbl); var confirmation = confirm(‘Are you sure, you want to delete it?’); if(confirmation){ jQuery.ajax({ type:’POST’, url: “common/function_outfits.php”, data: “ajax=true&activity=delete_item&itemID=”+item_id+”&action=”+item_tbl, success: function(data){ if(data==’Item Deleted.’){ cross_img.parent().remove(); } }…

Get Lat Long on google map

You can get the latitude and longitude of any location on google map by just clicking on that location. Check this out: But please make sure you have your own google api.. <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>…

Union Query in Mysql

$query = “( SELECT DATE_FORMAT( Date, ‘%m/%d/%Y’ ) AS date_time, id, type, ‘notes’ as table_name FROM notes WHERE p_id =’”.$pid.”‘ ) UNION ( SELECT DATE_FORMAT( DOS, ‘%m/%d/%Y’ ) AS date_time, id, type, ‘mt_d’ as table_name FROM mt_d WHERE p_id =’”.$pid.”‘…