JSFiddle - React, Tailwind, and code Playground

HTML

<table>
                                <tr valign="top">
                                    <td>Upload Image</td>
                                    <td><label for="upload_image">
                                            <input id="upload_image" type="text" size="36" name="upload_image" value="" />
                                            <input id="upload_image_button" type="button" value="Upload Image" />
                                            <br />Enter an URL or upload an image for the banner.
                                        </label>
                                    </td>
                                </tr>
                            </table>
  <table>
                                <tr valign="top">
                                    <td>Upload Image</td>
                                    <td><label for="upload">
                                            <input id="upload" type="text" size="36" name="upload" value="" />
                                            <input id="upload_button" type="button" value="Upload Image" />
                                            <br />Enter an URL or upload an image for the banner.
                                        </label>
                                    </td>
                                </tr>
                            </table>

JavaScript

jQuery(document).ready(function() {
            jQuery('#upload_image_button').click(function() {
                formfield = jQuery('#upload_image').attr('name');
                tb_show('', 'media-upload.php?type=image&TB_iframe=true');
                return false;
            });

            window.send_to_editor = function(html) {
                imgurl = jQuery('img', html).attr('src');
                jQuery('#upload_image').val(imgurl);
                tb_remove();
            };

        });
                         
                          
                            
                                jQuery(document).ready(function($) {
                                    jQuery('#upload_button').click(function() {
                                        formfield = jQuery('#upload').attr('name');
                                        tb_show('', 'media-upload.php?type=image&TB_iframe=true');
                                        return false;
                                    });

                                    window.send_to_editor = function(html) {
                                        imgurl = jQuery('img', html).attr('src');
                                        jQuery('#upload').val(imgurl);
                                        tb_remove();
                                    };

                                });