fil79 Posted December 30, 2009 at 06:12 PM Report Share #303265 Posted December 30, 2009 at 06:12 PM Boas quero passar uma variável javascript, num campo escondido de um form <script language="javascript"> variavel="algo";//ASSUNTO </script> e no HTML: <input type="text" name="ramo" value="javascript:variavel;"> Assim não está a funcionar...Desde já agradeço MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
fil79 Posted December 30, 2009 at 07:30 PM Author Report Share #303276 Posted December 30, 2009 at 07:30 PM já está: Atribuí um ID ao input (por exemplo, "ramo") e de pois <script type="text/javascript"> variavel = "algo"; document.getElementById("ramo").value = variavel; </script> MCITP-MCTS-MCP Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now