Jump to content

Recommended Posts

Posted (edited)

Boas, o que quero fazer é simples

eu quero ter um ficheiro php com o codigo html e php e nos elementos desse ficheiro (vamos chamar index.php) estão atribuidos funções jquery e javascript e o que eu quero é ter um ficheiro .js (vamos chamar handlers.js) e tem todas as funções como por exemplo

No index.php

<button onclick="javascript: jsFunction();"/>

e o handlers.js

function jsFunction()

{

}

ou ainda no index.php

<textarea id="area_de_texo"></textarea>

e no handlers.js

$('#area_de_text').on("keydown", function(e) {});

Eu presumo que n seja dificil antes pelo contrário mas preciso de uma ajuda...

Edited by Windows Dragon

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.