How to clear the value of a variable by clicking on the close of the modal box

clipboard.png

clipboard.png

clipboard.png

function BuildFun(obj) {
            var version_value = $(obj).attr("version_value");;
            var game_name = $(obj).attr("game_name");
            var groupname = $(obj).attr("groupname");
            var action_id = $(obj).attr("action_id");
            $("-sharpmyModalLabel").html("");
            $("-sharpmodal_userId").html(": " + groupname + " " + game_name + "" + version_value + " ?");
            $("-sharpmyModal").modal("show");

            $("-sharpmodal_user").click(function () {
                alert(action_id);
                $.ajax({
                    data: {
                        "action_id": action_id,
                        "version_value": version_value,
                        csrfmiddlewaretoken: "{{ csrf_token }}"
                    },
                    type: "POST",
                    url: "/pro1/startbuild/" + action_id + "/",
                    success: function (data) {
                        var logurl = data.logurl
                        if (data.status == "success") {
                            $("-sharpmodal_userId").html("" + groupname + " " + game_name + "" + version_value + " ");
                            $("-sharpmodal_user").hide();
                            $("-sharpmyModal").modal("show");

                            setTimeout(5000);
                            location.reload();

                        }
                    },
                })

            });

Click close how to clear the original value?

Nov.20,2021

when is your BuildFun function called

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c0fedb-32cad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c0fedb-32cad.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?