Last active
February 11, 2021 09:00
-
-
Save reachkamrul/4e5688c9d4a12568272c9d7e07b7a402 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var firstNameKey = "first_name"; // give your first name fields Name attributes | |
var lastNameKey = "last_name"; // give your last name fields Name attributes | |
var phoneNummber = "5521997832127" // give your mobile number | |
var text = "Quero-Desenhar%0A%20"; //give your texts | |
$form.on('submit',function(){ | |
var firstName = $(this).find("input[name='names["+firstNameKey+"]']").val(); | |
var lastName = $(this).find("input[name='names["+lastNameKey+"]']").val(); | |
window.location = 'http://api.whatsapp.com/send?phone='+phoneNummber+'&text='+text+''+firstName+'%20'+lastName; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment