I am using the google custom search api, But I don't want the google search default text box so for the same reson I have craeted a new text box and one button. On click of my custom button I am fetching search key value from my custom text box and putting in to the google search default text box. But in my javascript function I am unable to perform click event of the google search submit button. I know the class name of google search submit button now how can I do the click event in my java script function?
google search dubmit button class name is "gsc-search-button gsc-search-button-v2"
Now in the following method I need to perform the click event of the above class.
<script>
function myFunction() {
document.getElementById('gsc-i-id1').value = document.getElementById('customTextBox').value;
// here I need to perform click event for "gsc-search-button gsc-search-button-v2" class
}
</script>script>
I have the demo example in the following link,
http://jsfiddle.net/3L4fd63g/3/
Any suggestions please