Skip to main content

Resolvido!!!!!!

Resolvido, Funciona perfeitamente:

<script src="js/jquery.min.js"></script>
<script>
var variavel='';
function setval(varval){
variavel=varval;
event.preventDefault();
$('#loadexternalfile').load(variavel);
return;
}
</script>

<button><a onclick="javascript:setval('test1.txt')" />teste 1</a></button>
<button><a onclick="javascript:setval('test2.txt')" />teste 2</a></button>

<div id="loadexternalfile"></div>

Funcionou perfeitamente

Resolvido!!!!!!

<script src="js/jquery.min.js"></script>
<script>
var variavel='';
function setval(varval){
variavel=varval;
event.preventDefault();
$('#loadexternalfile').load(variavel);
return;
}
</script>

<button><a onclick="javascript:setval('test1.txt')" />teste 1</a></button>
<button><a onclick="javascript:setval('test2.txt')" />teste 2</a></button>

<div id="loadexternalfile"></div>

Funcionou perfeitamente

Resolvido, Funciona perfeitamente:

<script src="js/jquery.min.js"></script>
<script>
var variavel='';
function setval(varval){
variavel=varval;
event.preventDefault();
$('#loadexternalfile').load(variavel);
return;
}
</script>

<button><a onclick="javascript:setval('test1.txt')" />teste 1</a></button>
<button><a onclick="javascript:setval('test2.txt')" />teste 2</a></button>

<div id="loadexternalfile"></div>
Fonte Link

Resolvido!!!!!!

<script src="js/jquery.min.js"></script>
<script>
var variavel='';
function setval(varval){
variavel=varval;
event.preventDefault();
$('#loadexternalfile').load(variavel);
return;
}
</script>

<button><a onclick="javascript:setval('test1.txt')" />teste 1</a></button>
<button><a onclick="javascript:setval('test2.txt')" />teste 2</a></button>

<div id="loadexternalfile"></div>

Funcionou perfeitamente