Difference: JavaScript (2 vs. 3)

Revision 307 Oct 2010 - FlavioAraujo

Line: 1 to 1
 
%STARTINCLUDE%
<script type="text/javascript" src="%ATTACHURL%/jquery.js"></script>
<script type="text/javascript">
$("document").ready(function(){
Added:
>
>
//preenchimento do formulario $("#inscricao :submit").click(function(){ $("#inscricao textarea").attr("value",
"Nome
" + $("#inscricao #nome").attr("value") + "\n" +
"E-mail
" + $("#inscricao #from").attr("value") + "\n" +
"CPF
" + $("#inscricao #cpf").attr("value") + "\n" +
"Endereço
" + $("#inscricao #endereco").attr("value") + "\n" +
"Telefones
" + $("#inscricao #telefones").attr("value") + "\n" + "Instituto e curso de origem: " + $("#inscricao #instituto").attr("value") + "\n" +
"Formação
" + $("#inscricao #formacao").attr("value") + "\n" +
"Observações
" + $("#inscricao #observacoes").attr("value") + "\n" +
"Oficinas
" + $("#inscricao #oficinas").attr("value") + "\n" ); });

$("#inscricao :checkbox").click(function(){ var of = $(this).attr("id"); $("#inscricao #oficinas").attr("value", $("#inscricao #oficinas").attr("value") + of ); });

  $("#conteudo [href*='http://']").attr("target", "_blank"); $("#conteudo [href*='https://']").attr("target", "_blank"); $("[href*='.pdf']").attr("target", "_blank");
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback