Last active
September 15, 2016 17:38
-
-
Save flavioso16/d8bb0172dee10fd0213b1b8b75fecf20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById("calcular").addEventListener("click", function(){ | |
var emailCotacao = document.getElementById('email').value; | |
var select = document.getElementById("id_t_fipe_modelo"); | |
var modeloCotacao = select.options[select.selectedIndex].text; | |
if(emailCotacao) { | |
document.cookie = "emailCotacao=" + emailCotacao + ";domain=seguroautofacil.com.br;path=/"; | |
} | |
if(modeloCotacao) { | |
document.cookie = "modeloCotacao=" + modeloCotacao + ";domain=seguroautofacil.com.br;path=/"; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment