hello everyone i am trying to copy the textbox value using jquery but i dont want to use add on plugins Here is my code
<div class="form-group col-lg-4 col-md-4 col-sm-12 col-xs-12">
<input type="text" id="visor_node_token" name="view" value="Hello World">
</div>
<input type="button" name="view" value="Copy" class="btn btn-primary" onclick="copy_node_token()" />
function copy_node_token()
{
var node = $("#visor_node_token").val();
$(node).select();
document.execCommand("Copy");
}`
I am unable to copy the text value.please help me with this