praveen_dusari 11 Posting Whiz in Training

hi all,
i have added a simplemodal box in my project which is using jquery
problem is i am using it for dynamic php application. i want a id of clicked item iam not getting it
here is my code in php page

<div id='contact-form'><a href='#' class='contact'><input src="images/email-icon.png" type="image"  value="<? echo $title_str;?>" width="23" height="27" id="<? echo $title_str;?>" /></a></div>

and in javascipt page
contact.js

$(document).ready(function () {
							
	$('#contact-form input.contact, #contact-form a.contact').bind('click',function (e){
alert(this.id);
		e.preventDefault();
		// load the contact form using ajax
		$.get("modules/contact.php", function(data){
			// create a modal dialog with the data
			$(data).modal({
				closeHTML: "<a href='#' title='Close' class='modal-close'>x</a>",
				position: ["15%",],
				overlayId: 'contact-overlay',
				containerId: 'contact-container',
				onOpen: contact.open,
				onShow: contact.show,
				onClose: contact.close
			});
		});
	});

	// preload images
	var img = ['cancel.png', 'form_bottom.gif', 'form_top.gif', 'loading.gif', 'send.png'];
	$(img).each(function () {
		var i = new Image();
		i.src = 'img/contact/' + this;
	});
});

iam not getting it right please help me