open text box which clicking on image
I have an image on which "click to ed开发者_开发问答it" is written now when i click that part i want to show edit box where "Type 1" is written.
I have tried to put edit box but unable to get the click event ...
here is the image
http://www.freeimagehosting.net/image.php?55dd1b316d.png
i assume you're using jquery
$('#yourimageid').bind('click', function(){
.... your box appearance code here
});
if not it's a bit mor letters, but the same thing
document.getElementById('yourimageid').onclick = function(){
.... your box appearance code here
}
$("#the-image").click(function() {
// show the edit box
$("#edit-box").show();
}
If it's something simple like that, then just position #edit-box with CSS.
精彩评论