/** * jQuery floodling v1.1.9 https://github.com/hyubs/floodling * Written by Hyubs Ursua * Copyright (c) 2013 * Website: https://github.com/hyubs/floodling * License: http://www.opensource.org/licenses/mit-license.php */ (function(e){function t(e,t,n,r){if(typeof t!=="undefined"&&t.length>0){var i=t.prop("tagName").toLowerCase();if(i=="input"){var s=t.prop("type").toLowerCase();if(s=="text"||s=="password"){t.val(n)}else if(s=="radio"){e.find('[name="'+r+'"][value="'+n+'"]').prop("checked",true)}else if(s=="checkbox"){var o=r.length;if(o>2&&r.substring(o-2,o)=="[]"){if(n instanceof Array){for(var u=0;u