I want to flip Image Horizontally And Vertically How can I do it? onClick function through its id.
<script>
function fliph(imageid){
var imageid = imageid;
//What Should I have to Type HERE???
}
function flipv(imageid){
var imageid = imageid;
//What Should I have to Type HERE???
}
</script>
<input type="submit" name="flip" value="Flip Horizontal" onClick="fliph('imageid')" />
<input type="submit" name="flip" value="Flip Vertical" onClick="flipv('imageid')" />
<img src="http://classihome.com/uploads/gallery/1453292889developlda.jpg" id="imageid">