Last active
September 18, 2020 09:14
-
-
Save reachkamrul/1eb31bc5fd19385cd26c15ecdcfb9fba 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
// define your name attributes here | |
var radioField = "---"; | |
var firstNfield = "---"; | |
var surNField = "---"; | |
var showHere ="---"; | |
$(":input").bind("keyup change", function(e) { | |
var title = jQuery("input[data-name='"+radioField+"']:checked").val(); | |
var firstName = jQuery("input[data-name='"+firstNfield+"']").val(); | |
var surname = jQuery("input[data-name='"+surNField+"']").val(); | |
jQuery("input[data-name='"+showHere+"']").val(title+' '+firstName+ ' '+ surname); | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment