Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a href="#" id="Esse ID">Teste</a><!-- CAPTURA O ID -->
- <input id="estado" name="estado" value="" /><!-- Para onde deve ir o atributo "ID" do link -->
- <script type="text/javascript">
- $(document).ready(function() {
- $("a").click(function() {
- var value_send = $(this).attr("id");
- $("input#estado").value( value_send );
- });
- )};
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement