Created
July 20, 2018 19:29
-
-
Save apfzvd/c69b6dc0fb4b4d33d84b6f582fa494ce 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 $input_radio = $('input[name="tag"]'); | |
var textarea_wrapper_id = '.textarea_wrapper'; | |
var $textarea_wrapper = $(textarea_wrapper_id); | |
$input_radio.on('change', function() { | |
var id = $(this).value(); | |
var get_url = 'id=' + id; | |
// remove falor atual | |
$textarea_wrapper.html(''); | |
// faz o load da nova informação | |
$textarea_wrapper.load(get_url + ' ' + textarea_wrapper_id); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment