How can I add a class to an input of type submit in html such as it won't be removed once added?












0















I am trying to add a class to an input of type submit I tried using javascript input is inside a form



<input type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


where disable is a function :



 function disable(element)
{
element.classList.add('disabled');
}


when the input is clicked it adds the class but when the action is sent the class is removed again , what I want to do is when I click the input I don't want it to be clickable anymore so I am trying to add class disabled and I don't want it to be removed , is it possible to do it with JS or PHP is needed ?










share|improve this question



























    0















    I am trying to add a class to an input of type submit I tried using javascript input is inside a form



    <input type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


    where disable is a function :



     function disable(element)
    {
    element.classList.add('disabled');
    }


    when the input is clicked it adds the class but when the action is sent the class is removed again , what I want to do is when I click the input I don't want it to be clickable anymore so I am trying to add class disabled and I don't want it to be removed , is it possible to do it with JS or PHP is needed ?










    share|improve this question

























      0












      0








      0








      I am trying to add a class to an input of type submit I tried using javascript input is inside a form



      <input type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


      where disable is a function :



       function disable(element)
      {
      element.classList.add('disabled');
      }


      when the input is clicked it adds the class but when the action is sent the class is removed again , what I want to do is when I click the input I don't want it to be clickable anymore so I am trying to add class disabled and I don't want it to be removed , is it possible to do it with JS or PHP is needed ?










      share|improve this question














      I am trying to add a class to an input of type submit I tried using javascript input is inside a form



      <input type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


      where disable is a function :



       function disable(element)
      {
      element.classList.add('disabled');
      }


      when the input is clicked it adds the class but when the action is sent the class is removed again , what I want to do is when I click the input I don't want it to be clickable anymore so I am trying to add class disabled and I don't want it to be removed , is it possible to do it with JS or PHP is needed ?







      javascript php html






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 24 '18 at 19:41









      Johnny AdamsJohnny Adams

      256




      256
























          3 Answers
          3






          active

          oldest

          votes


















          1














          You can store a boolean inside sessionStorage and when the page loads check if the boolean is true and if so disable the button.



          sessionStorage will delete itself once the window gets closed.



          Example:



          pagescript.js:



          let shouldDisableInput = sessionStorage.getItem('shouldDisableInput')
          if(shouldDisableInput !== undefined){
          $('#input-id').classList.add('disabled') //or $('#input-id').prop('disabled', true);
          }
          function disable(element){
          element.classList.add('disabled');
          sessionStorage.setItem('shouldDisableInput', 'true')
          }


          page.html:



          <input id="input-id" type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


          don't forget to add the pagescript.js inside the body of the html.



          More info on sessionStorage:
          https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage






          share|improve this answer
























          • since I've got a bunch of inputs which actually do the same function but for different persons and actually it is account based if one user clicks it the other should be still able to click it if hasn't done such yet , I think the bool you talking about I should store it in a database for each input and then for each user it will be checked if it's clicked or not

            – Johnny Adams
            Nov 24 '18 at 21:11






          • 1





            Are you talking about logging in? Is the input specific to logging in? You should not store bools related to Front-End inputs inside your database.

            – ATheCoder
            Nov 26 '18 at 6:49






          • 1





            sessionStorage is user specific, and is saved on the client's computer. So if someone logs in for example and you store something inside their sessionStorage other users will not have that information available for them, that's why we say sessionStorage is client-side.

            – ATheCoder
            Nov 26 '18 at 6:54



















          2














          When you click on the submit button, it will submit the form data (if present) to the target url, which is the current url by default. What you see is that the page is being reloaded afresh, so the class that you added will not be there anymore, because technically, it's a new page.



          What you need to do is to disable the button right at the page load, if it's not to be used again. (Arguably you could remove the button altogether, because it's no use to have a disabled button that is never to be used again.)



          To disable the <input ..., just add the attribute disabled to the tag.






          share|improve this answer
























          • actually I don't want to remove entirely because I am planning to make later on something that will make the button automatically be available again , but how can I disable the button after the page loads ?

            – Johnny Adams
            Nov 24 '18 at 19:55











          • You need a way to tell if the page is freshly loaded or via the submit button. The easiest way to know that it's the latter case is by a parameter (you can use a <input type="hidden" ... which then will appear in the query string.

            – Sami Hult
            Nov 24 '18 at 20:00











          • Alternatively, if you can, use AJAX to submit the form so you don't reload the page.

            – Andy
            Nov 24 '18 at 20:04











          • @Andy I am not familiar with AJAX but seems that I need to learn it

            – Johnny Adams
            Nov 24 '18 at 20:20



















          0














          You can send a hidden variable with some value from php page, and check in html page if the variable is exists then print disable tag.






          share|improve this answer
























          • Imma try it , I think that will do it

            – Johnny Adams
            Nov 24 '18 at 20:08











          • I hope you could find a way

            – Shahnewaz
            Nov 24 '18 at 20:12











          • the problem now is that I have a bunch of inputs so when one is clicked it has to be disabled I am afraid this will take more than I thought

            – Johnny Adams
            Nov 24 '18 at 20:18











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53461745%2fhow-can-i-add-a-class-to-an-input-of-type-submit-in-html-such-as-it-wont-be-rem%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          3 Answers
          3






          active

          oldest

          votes








          3 Answers
          3






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          You can store a boolean inside sessionStorage and when the page loads check if the boolean is true and if so disable the button.



          sessionStorage will delete itself once the window gets closed.



          Example:



          pagescript.js:



          let shouldDisableInput = sessionStorage.getItem('shouldDisableInput')
          if(shouldDisableInput !== undefined){
          $('#input-id').classList.add('disabled') //or $('#input-id').prop('disabled', true);
          }
          function disable(element){
          element.classList.add('disabled');
          sessionStorage.setItem('shouldDisableInput', 'true')
          }


          page.html:



          <input id="input-id" type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


          don't forget to add the pagescript.js inside the body of the html.



          More info on sessionStorage:
          https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage






          share|improve this answer
























          • since I've got a bunch of inputs which actually do the same function but for different persons and actually it is account based if one user clicks it the other should be still able to click it if hasn't done such yet , I think the bool you talking about I should store it in a database for each input and then for each user it will be checked if it's clicked or not

            – Johnny Adams
            Nov 24 '18 at 21:11






          • 1





            Are you talking about logging in? Is the input specific to logging in? You should not store bools related to Front-End inputs inside your database.

            – ATheCoder
            Nov 26 '18 at 6:49






          • 1





            sessionStorage is user specific, and is saved on the client's computer. So if someone logs in for example and you store something inside their sessionStorage other users will not have that information available for them, that's why we say sessionStorage is client-side.

            – ATheCoder
            Nov 26 '18 at 6:54
















          1














          You can store a boolean inside sessionStorage and when the page loads check if the boolean is true and if so disable the button.



          sessionStorage will delete itself once the window gets closed.



          Example:



          pagescript.js:



          let shouldDisableInput = sessionStorage.getItem('shouldDisableInput')
          if(shouldDisableInput !== undefined){
          $('#input-id').classList.add('disabled') //or $('#input-id').prop('disabled', true);
          }
          function disable(element){
          element.classList.add('disabled');
          sessionStorage.setItem('shouldDisableInput', 'true')
          }


          page.html:



          <input id="input-id" type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


          don't forget to add the pagescript.js inside the body of the html.



          More info on sessionStorage:
          https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage






          share|improve this answer
























          • since I've got a bunch of inputs which actually do the same function but for different persons and actually it is account based if one user clicks it the other should be still able to click it if hasn't done such yet , I think the bool you talking about I should store it in a database for each input and then for each user it will be checked if it's clicked or not

            – Johnny Adams
            Nov 24 '18 at 21:11






          • 1





            Are you talking about logging in? Is the input specific to logging in? You should not store bools related to Front-End inputs inside your database.

            – ATheCoder
            Nov 26 '18 at 6:49






          • 1





            sessionStorage is user specific, and is saved on the client's computer. So if someone logs in for example and you store something inside their sessionStorage other users will not have that information available for them, that's why we say sessionStorage is client-side.

            – ATheCoder
            Nov 26 '18 at 6:54














          1












          1








          1







          You can store a boolean inside sessionStorage and when the page loads check if the boolean is true and if so disable the button.



          sessionStorage will delete itself once the window gets closed.



          Example:



          pagescript.js:



          let shouldDisableInput = sessionStorage.getItem('shouldDisableInput')
          if(shouldDisableInput !== undefined){
          $('#input-id').classList.add('disabled') //or $('#input-id').prop('disabled', true);
          }
          function disable(element){
          element.classList.add('disabled');
          sessionStorage.setItem('shouldDisableInput', 'true')
          }


          page.html:



          <input id="input-id" type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


          don't forget to add the pagescript.js inside the body of the html.



          More info on sessionStorage:
          https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage






          share|improve this answer













          You can store a boolean inside sessionStorage and when the page loads check if the boolean is true and if so disable the button.



          sessionStorage will delete itself once the window gets closed.



          Example:



          pagescript.js:



          let shouldDisableInput = sessionStorage.getItem('shouldDisableInput')
          if(shouldDisableInput !== undefined){
          $('#input-id').classList.add('disabled') //or $('#input-id').prop('disabled', true);
          }
          function disable(element){
          element.classList.add('disabled');
          sessionStorage.setItem('shouldDisableInput', 'true')
          }


          page.html:



          <input id="input-id" type='submit' name='$emri" . "$mbiemri" . "submit" . "$depart'" . " value='Vlereso' onclick='disable(this)'>


          don't forget to add the pagescript.js inside the body of the html.



          More info on sessionStorage:
          https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 24 '18 at 20:25









          ATheCoderATheCoder

          1051110




          1051110













          • since I've got a bunch of inputs which actually do the same function but for different persons and actually it is account based if one user clicks it the other should be still able to click it if hasn't done such yet , I think the bool you talking about I should store it in a database for each input and then for each user it will be checked if it's clicked or not

            – Johnny Adams
            Nov 24 '18 at 21:11






          • 1





            Are you talking about logging in? Is the input specific to logging in? You should not store bools related to Front-End inputs inside your database.

            – ATheCoder
            Nov 26 '18 at 6:49






          • 1





            sessionStorage is user specific, and is saved on the client's computer. So if someone logs in for example and you store something inside their sessionStorage other users will not have that information available for them, that's why we say sessionStorage is client-side.

            – ATheCoder
            Nov 26 '18 at 6:54



















          • since I've got a bunch of inputs which actually do the same function but for different persons and actually it is account based if one user clicks it the other should be still able to click it if hasn't done such yet , I think the bool you talking about I should store it in a database for each input and then for each user it will be checked if it's clicked or not

            – Johnny Adams
            Nov 24 '18 at 21:11






          • 1





            Are you talking about logging in? Is the input specific to logging in? You should not store bools related to Front-End inputs inside your database.

            – ATheCoder
            Nov 26 '18 at 6:49






          • 1





            sessionStorage is user specific, and is saved on the client's computer. So if someone logs in for example and you store something inside their sessionStorage other users will not have that information available for them, that's why we say sessionStorage is client-side.

            – ATheCoder
            Nov 26 '18 at 6:54

















          since I've got a bunch of inputs which actually do the same function but for different persons and actually it is account based if one user clicks it the other should be still able to click it if hasn't done such yet , I think the bool you talking about I should store it in a database for each input and then for each user it will be checked if it's clicked or not

          – Johnny Adams
          Nov 24 '18 at 21:11





          since I've got a bunch of inputs which actually do the same function but for different persons and actually it is account based if one user clicks it the other should be still able to click it if hasn't done such yet , I think the bool you talking about I should store it in a database for each input and then for each user it will be checked if it's clicked or not

          – Johnny Adams
          Nov 24 '18 at 21:11




          1




          1





          Are you talking about logging in? Is the input specific to logging in? You should not store bools related to Front-End inputs inside your database.

          – ATheCoder
          Nov 26 '18 at 6:49





          Are you talking about logging in? Is the input specific to logging in? You should not store bools related to Front-End inputs inside your database.

          – ATheCoder
          Nov 26 '18 at 6:49




          1




          1





          sessionStorage is user specific, and is saved on the client's computer. So if someone logs in for example and you store something inside their sessionStorage other users will not have that information available for them, that's why we say sessionStorage is client-side.

          – ATheCoder
          Nov 26 '18 at 6:54





          sessionStorage is user specific, and is saved on the client's computer. So if someone logs in for example and you store something inside their sessionStorage other users will not have that information available for them, that's why we say sessionStorage is client-side.

          – ATheCoder
          Nov 26 '18 at 6:54













          2














          When you click on the submit button, it will submit the form data (if present) to the target url, which is the current url by default. What you see is that the page is being reloaded afresh, so the class that you added will not be there anymore, because technically, it's a new page.



          What you need to do is to disable the button right at the page load, if it's not to be used again. (Arguably you could remove the button altogether, because it's no use to have a disabled button that is never to be used again.)



          To disable the <input ..., just add the attribute disabled to the tag.






          share|improve this answer
























          • actually I don't want to remove entirely because I am planning to make later on something that will make the button automatically be available again , but how can I disable the button after the page loads ?

            – Johnny Adams
            Nov 24 '18 at 19:55











          • You need a way to tell if the page is freshly loaded or via the submit button. The easiest way to know that it's the latter case is by a parameter (you can use a <input type="hidden" ... which then will appear in the query string.

            – Sami Hult
            Nov 24 '18 at 20:00











          • Alternatively, if you can, use AJAX to submit the form so you don't reload the page.

            – Andy
            Nov 24 '18 at 20:04











          • @Andy I am not familiar with AJAX but seems that I need to learn it

            – Johnny Adams
            Nov 24 '18 at 20:20
















          2














          When you click on the submit button, it will submit the form data (if present) to the target url, which is the current url by default. What you see is that the page is being reloaded afresh, so the class that you added will not be there anymore, because technically, it's a new page.



          What you need to do is to disable the button right at the page load, if it's not to be used again. (Arguably you could remove the button altogether, because it's no use to have a disabled button that is never to be used again.)



          To disable the <input ..., just add the attribute disabled to the tag.






          share|improve this answer
























          • actually I don't want to remove entirely because I am planning to make later on something that will make the button automatically be available again , but how can I disable the button after the page loads ?

            – Johnny Adams
            Nov 24 '18 at 19:55











          • You need a way to tell if the page is freshly loaded or via the submit button. The easiest way to know that it's the latter case is by a parameter (you can use a <input type="hidden" ... which then will appear in the query string.

            – Sami Hult
            Nov 24 '18 at 20:00











          • Alternatively, if you can, use AJAX to submit the form so you don't reload the page.

            – Andy
            Nov 24 '18 at 20:04











          • @Andy I am not familiar with AJAX but seems that I need to learn it

            – Johnny Adams
            Nov 24 '18 at 20:20














          2












          2








          2







          When you click on the submit button, it will submit the form data (if present) to the target url, which is the current url by default. What you see is that the page is being reloaded afresh, so the class that you added will not be there anymore, because technically, it's a new page.



          What you need to do is to disable the button right at the page load, if it's not to be used again. (Arguably you could remove the button altogether, because it's no use to have a disabled button that is never to be used again.)



          To disable the <input ..., just add the attribute disabled to the tag.






          share|improve this answer













          When you click on the submit button, it will submit the form data (if present) to the target url, which is the current url by default. What you see is that the page is being reloaded afresh, so the class that you added will not be there anymore, because technically, it's a new page.



          What you need to do is to disable the button right at the page load, if it's not to be used again. (Arguably you could remove the button altogether, because it's no use to have a disabled button that is never to be used again.)



          To disable the <input ..., just add the attribute disabled to the tag.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 24 '18 at 19:50









          Sami HultSami Hult

          2,3871613




          2,3871613













          • actually I don't want to remove entirely because I am planning to make later on something that will make the button automatically be available again , but how can I disable the button after the page loads ?

            – Johnny Adams
            Nov 24 '18 at 19:55











          • You need a way to tell if the page is freshly loaded or via the submit button. The easiest way to know that it's the latter case is by a parameter (you can use a <input type="hidden" ... which then will appear in the query string.

            – Sami Hult
            Nov 24 '18 at 20:00











          • Alternatively, if you can, use AJAX to submit the form so you don't reload the page.

            – Andy
            Nov 24 '18 at 20:04











          • @Andy I am not familiar with AJAX but seems that I need to learn it

            – Johnny Adams
            Nov 24 '18 at 20:20



















          • actually I don't want to remove entirely because I am planning to make later on something that will make the button automatically be available again , but how can I disable the button after the page loads ?

            – Johnny Adams
            Nov 24 '18 at 19:55











          • You need a way to tell if the page is freshly loaded or via the submit button. The easiest way to know that it's the latter case is by a parameter (you can use a <input type="hidden" ... which then will appear in the query string.

            – Sami Hult
            Nov 24 '18 at 20:00











          • Alternatively, if you can, use AJAX to submit the form so you don't reload the page.

            – Andy
            Nov 24 '18 at 20:04











          • @Andy I am not familiar with AJAX but seems that I need to learn it

            – Johnny Adams
            Nov 24 '18 at 20:20

















          actually I don't want to remove entirely because I am planning to make later on something that will make the button automatically be available again , but how can I disable the button after the page loads ?

          – Johnny Adams
          Nov 24 '18 at 19:55





          actually I don't want to remove entirely because I am planning to make later on something that will make the button automatically be available again , but how can I disable the button after the page loads ?

          – Johnny Adams
          Nov 24 '18 at 19:55













          You need a way to tell if the page is freshly loaded or via the submit button. The easiest way to know that it's the latter case is by a parameter (you can use a <input type="hidden" ... which then will appear in the query string.

          – Sami Hult
          Nov 24 '18 at 20:00





          You need a way to tell if the page is freshly loaded or via the submit button. The easiest way to know that it's the latter case is by a parameter (you can use a <input type="hidden" ... which then will appear in the query string.

          – Sami Hult
          Nov 24 '18 at 20:00













          Alternatively, if you can, use AJAX to submit the form so you don't reload the page.

          – Andy
          Nov 24 '18 at 20:04





          Alternatively, if you can, use AJAX to submit the form so you don't reload the page.

          – Andy
          Nov 24 '18 at 20:04













          @Andy I am not familiar with AJAX but seems that I need to learn it

          – Johnny Adams
          Nov 24 '18 at 20:20





          @Andy I am not familiar with AJAX but seems that I need to learn it

          – Johnny Adams
          Nov 24 '18 at 20:20











          0














          You can send a hidden variable with some value from php page, and check in html page if the variable is exists then print disable tag.






          share|improve this answer
























          • Imma try it , I think that will do it

            – Johnny Adams
            Nov 24 '18 at 20:08











          • I hope you could find a way

            – Shahnewaz
            Nov 24 '18 at 20:12











          • the problem now is that I have a bunch of inputs so when one is clicked it has to be disabled I am afraid this will take more than I thought

            – Johnny Adams
            Nov 24 '18 at 20:18
















          0














          You can send a hidden variable with some value from php page, and check in html page if the variable is exists then print disable tag.






          share|improve this answer
























          • Imma try it , I think that will do it

            – Johnny Adams
            Nov 24 '18 at 20:08











          • I hope you could find a way

            – Shahnewaz
            Nov 24 '18 at 20:12











          • the problem now is that I have a bunch of inputs so when one is clicked it has to be disabled I am afraid this will take more than I thought

            – Johnny Adams
            Nov 24 '18 at 20:18














          0












          0








          0







          You can send a hidden variable with some value from php page, and check in html page if the variable is exists then print disable tag.






          share|improve this answer













          You can send a hidden variable with some value from php page, and check in html page if the variable is exists then print disable tag.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 24 '18 at 19:59









          ShahnewazShahnewaz

          392311




          392311













          • Imma try it , I think that will do it

            – Johnny Adams
            Nov 24 '18 at 20:08











          • I hope you could find a way

            – Shahnewaz
            Nov 24 '18 at 20:12











          • the problem now is that I have a bunch of inputs so when one is clicked it has to be disabled I am afraid this will take more than I thought

            – Johnny Adams
            Nov 24 '18 at 20:18



















          • Imma try it , I think that will do it

            – Johnny Adams
            Nov 24 '18 at 20:08











          • I hope you could find a way

            – Shahnewaz
            Nov 24 '18 at 20:12











          • the problem now is that I have a bunch of inputs so when one is clicked it has to be disabled I am afraid this will take more than I thought

            – Johnny Adams
            Nov 24 '18 at 20:18

















          Imma try it , I think that will do it

          – Johnny Adams
          Nov 24 '18 at 20:08





          Imma try it , I think that will do it

          – Johnny Adams
          Nov 24 '18 at 20:08













          I hope you could find a way

          – Shahnewaz
          Nov 24 '18 at 20:12





          I hope you could find a way

          – Shahnewaz
          Nov 24 '18 at 20:12













          the problem now is that I have a bunch of inputs so when one is clicked it has to be disabled I am afraid this will take more than I thought

          – Johnny Adams
          Nov 24 '18 at 20:18





          the problem now is that I have a bunch of inputs so when one is clicked it has to be disabled I am afraid this will take more than I thought

          – Johnny Adams
          Nov 24 '18 at 20:18


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53461745%2fhow-can-i-add-a-class-to-an-input-of-type-submit-in-html-such-as-it-wont-be-rem%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Costa Masnaga

          Fotorealismo

          Sidney Franklin