So i have a set of these buttons. https://i.sstatic.net/839MH.png
On clicking the 4th bolt i want to call a select menu option like this.
My desired result is this on clicking the button is https://i.sstatic.net/d6XIj.jpg
I want to know how to embed this html code in jquery or java script so that i can call it by onclick/click function. Below is my jquery code and html for the button.
Html code for my button
<img id="analysis" class="normal_button" src="buttons/analysis.png">
jquery code for button
jQuery(document).ready(function(){
jQuery("#analysis").click(function(){
alert("hello world");
});
});
var el = jQuery('<div>this is a new new element</div>'); jQuery('#analysis').append(el)display: nonein css. When your button is clicked simply give itdisplay: block, his jsfiddle illustrates it.