Hide Spinner in Input Number - Firefox 29












157















On Firefox 28, I'm using <input type="number"> works great because it brings up the numerical keyboard on input fields which should only contain numbers.



In Firefox 29, using number inputs displays spin buttons at the right side of the field, which looks like crap in my design. I really don't need the buttons, because they are useless when you need to write something like a 6~10 digit number anyway.



Is it possible to disable this with CSS or jQuery?










share|improve this question




















  • 1





    If you don't want the spin arrows, then don't use type="number". You can use type="text" and the pattern attribute to set a regex to make sure it's a number.

    – Rocket Hazmat
    Apr 29 '14 at 18:51








  • 3





    -webkit-inner-spin-button -webkit-outer-spin-button with -webkit-appearance: none; margin: 0; Dont Work in Firefox.

    – NereuJunior
    Apr 29 '14 at 19:13






  • 8





    @RocketHazmat: type="number" is required for mobile browsers to show the numeric keyboard instead of the full keyboard.

    – CoDEmanX
    Aug 16 '15 at 12:59






  • 1





    <input type="tel"> it's only numbers and it doesn't include spinners.

    – TomasVeras
    Oct 2 '15 at 20:00






  • 4





    Changing type="text" is a bad idea because touch devices will show the wrong keyboard.

    – WhyNotHugo
    Feb 28 '16 at 8:01
















157















On Firefox 28, I'm using <input type="number"> works great because it brings up the numerical keyboard on input fields which should only contain numbers.



In Firefox 29, using number inputs displays spin buttons at the right side of the field, which looks like crap in my design. I really don't need the buttons, because they are useless when you need to write something like a 6~10 digit number anyway.



Is it possible to disable this with CSS or jQuery?










share|improve this question




















  • 1





    If you don't want the spin arrows, then don't use type="number". You can use type="text" and the pattern attribute to set a regex to make sure it's a number.

    – Rocket Hazmat
    Apr 29 '14 at 18:51








  • 3





    -webkit-inner-spin-button -webkit-outer-spin-button with -webkit-appearance: none; margin: 0; Dont Work in Firefox.

    – NereuJunior
    Apr 29 '14 at 19:13






  • 8





    @RocketHazmat: type="number" is required for mobile browsers to show the numeric keyboard instead of the full keyboard.

    – CoDEmanX
    Aug 16 '15 at 12:59






  • 1





    <input type="tel"> it's only numbers and it doesn't include spinners.

    – TomasVeras
    Oct 2 '15 at 20:00






  • 4





    Changing type="text" is a bad idea because touch devices will show the wrong keyboard.

    – WhyNotHugo
    Feb 28 '16 at 8:01














157












157








157


35






On Firefox 28, I'm using <input type="number"> works great because it brings up the numerical keyboard on input fields which should only contain numbers.



In Firefox 29, using number inputs displays spin buttons at the right side of the field, which looks like crap in my design. I really don't need the buttons, because they are useless when you need to write something like a 6~10 digit number anyway.



Is it possible to disable this with CSS or jQuery?










share|improve this question
















On Firefox 28, I'm using <input type="number"> works great because it brings up the numerical keyboard on input fields which should only contain numbers.



In Firefox 29, using number inputs displays spin buttons at the right side of the field, which looks like crap in my design. I really don't need the buttons, because they are useless when you need to write something like a 6~10 digit number anyway.



Is it possible to disable this with CSS or jQuery?







jquery css firefox input spinner






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 29 '14 at 18:52









j08691

166k20192213




166k20192213










asked Apr 29 '14 at 18:48









NereuJuniorNereuJunior

1,0073109




1,0073109








  • 1





    If you don't want the spin arrows, then don't use type="number". You can use type="text" and the pattern attribute to set a regex to make sure it's a number.

    – Rocket Hazmat
    Apr 29 '14 at 18:51








  • 3





    -webkit-inner-spin-button -webkit-outer-spin-button with -webkit-appearance: none; margin: 0; Dont Work in Firefox.

    – NereuJunior
    Apr 29 '14 at 19:13






  • 8





    @RocketHazmat: type="number" is required for mobile browsers to show the numeric keyboard instead of the full keyboard.

    – CoDEmanX
    Aug 16 '15 at 12:59






  • 1





    <input type="tel"> it's only numbers and it doesn't include spinners.

    – TomasVeras
    Oct 2 '15 at 20:00






  • 4





    Changing type="text" is a bad idea because touch devices will show the wrong keyboard.

    – WhyNotHugo
    Feb 28 '16 at 8:01














  • 1





    If you don't want the spin arrows, then don't use type="number". You can use type="text" and the pattern attribute to set a regex to make sure it's a number.

    – Rocket Hazmat
    Apr 29 '14 at 18:51








  • 3





    -webkit-inner-spin-button -webkit-outer-spin-button with -webkit-appearance: none; margin: 0; Dont Work in Firefox.

    – NereuJunior
    Apr 29 '14 at 19:13






  • 8





    @RocketHazmat: type="number" is required for mobile browsers to show the numeric keyboard instead of the full keyboard.

    – CoDEmanX
    Aug 16 '15 at 12:59






  • 1





    <input type="tel"> it's only numbers and it doesn't include spinners.

    – TomasVeras
    Oct 2 '15 at 20:00






  • 4





    Changing type="text" is a bad idea because touch devices will show the wrong keyboard.

    – WhyNotHugo
    Feb 28 '16 at 8:01








1




1





If you don't want the spin arrows, then don't use type="number". You can use type="text" and the pattern attribute to set a regex to make sure it's a number.

– Rocket Hazmat
Apr 29 '14 at 18:51







If you don't want the spin arrows, then don't use type="number". You can use type="text" and the pattern attribute to set a regex to make sure it's a number.

– Rocket Hazmat
Apr 29 '14 at 18:51






3




3





-webkit-inner-spin-button -webkit-outer-spin-button with -webkit-appearance: none; margin: 0; Dont Work in Firefox.

– NereuJunior
Apr 29 '14 at 19:13





-webkit-inner-spin-button -webkit-outer-spin-button with -webkit-appearance: none; margin: 0; Dont Work in Firefox.

– NereuJunior
Apr 29 '14 at 19:13




8




8





@RocketHazmat: type="number" is required for mobile browsers to show the numeric keyboard instead of the full keyboard.

– CoDEmanX
Aug 16 '15 at 12:59





@RocketHazmat: type="number" is required for mobile browsers to show the numeric keyboard instead of the full keyboard.

– CoDEmanX
Aug 16 '15 at 12:59




1




1





<input type="tel"> it's only numbers and it doesn't include spinners.

– TomasVeras
Oct 2 '15 at 20:00





<input type="tel"> it's only numbers and it doesn't include spinners.

– TomasVeras
Oct 2 '15 at 20:00




4




4





Changing type="text" is a bad idea because touch devices will show the wrong keyboard.

– WhyNotHugo
Feb 28 '16 at 8:01





Changing type="text" is a bad idea because touch devices will show the wrong keyboard.

– WhyNotHugo
Feb 28 '16 at 8:01












5 Answers
5






active

oldest

votes


















424














According to this blog post, you need to set -moz-appearance:textfield; on the input.




input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

input[type=number] {
-moz-appearance:textfield;
}

<input type="number" step="0.01"/>








share|improve this answer





















  • 1





    I wrapped this in @-moz-document url-prefix() { ... } and it does what I want: hides the spinners in Firefox, where they look bad, but keep them alive in other browsers, including ones that bring up the numeric keyboard as the OP mentioned.

    – Michael Scheper
    Nov 21 '14 at 3:51






  • 2





    Some more useful information from Geoff Graham: Numeric Inputs – A Comparison of Browser Defaults

    – Richard Deeming
    Mar 25 '15 at 19:58






  • 2





    this works and indeed it removes the spinners, but then you are now able to enter alphanumeric characters into it. Hope somebody finds a way to handle that scenario without having to check the entered keys if they are numbers or not.

    – Jovanni G
    Oct 13 '17 at 17:09






  • 1





    @JovanniG: Even if you don't remove the spinners, you can still enter non-numeric characters into the input in Firefox. Try it with the demo on MDN. Chrome prevents non-numeric input in both examples.

    – Richard Deeming
    Oct 16 '17 at 9:54






  • 1





    @alxndr: Also, I've just tried the "Run code snippet" in Chrome 66, and it works as expected.

    – Richard Deeming
    Apr 20 '18 at 10:44





















37














It's worth pointing out that the default value of -moz-appearance on these elements is number-input in Firefox.



If you want to hide the spinner by default, you can set -moz-appearance: textfield initially, and if you want the spinner to appear on :hover/:focus, you can overwrite the previous styling with -moz-appearance: number-input.






input[type="number"] {
-moz-appearance: textfield;
}
input[type="number"]:hover,
input[type="number"]:focus {
-moz-appearance: number-input;
}

<input type="number"/>





I thought someone might find that helpful since I recently had to do this in attempts to improve consistency between Chrome/FF (since this is the way number inputs behave by default in Chrome).



If you want to see all the available values for -moz-appearance, you can find them here (mdn).






share|improve this answer































    7














    In SASS/SCSS style, you can write like this:



    input[type='number'] {
    -moz-appearance: textfield;/*For FireFox*/

    &::-webkit-inner-spin-button { /*For Webkits like Chrome and Safari*/
    -webkit-appearance: none;
    margin: 0;
    }
    }


    Definitely this code style can use in PostCSS.






    share|improve this answer































      4














      Faced the same issue post Firefox update to 29.0.1, this is also listed out here
      https://bugzilla.mozilla.org/show_bug.cgi?id=947728



      Solutions:
      They(Mozilla guys) have fixed this by introducing support for "-moz-appearance" for <input type="number">.
      You just need to have a style associated with your input field with "-moz-appearance:textfield;".



      I prefer the CSS way
      E.g.:-



      .input-mini{
      -moz-appearance:textfield;}


      Or



      You can do it inline as well:



      <input type="number" style="-moz-appearance: textfield">





      share|improve this answer































        4














        /* for chrome */
        input[type=number]::-webkit-inner-spin-button,
        input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;}


        /* for mozilla */
        input[type=number] {-moz-appearance: textfield;}





        share|improve this answer
























        • above css code is enough to hide html <input type="number"> spinner

          – navin prakash
          Mar 30 '17 at 10:45










        protected by Community Apr 6 '17 at 15:29



        Thank you for your interest in this question.
        Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



        Would you like to answer one of these unanswered questions instead?














        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        424














        According to this blog post, you need to set -moz-appearance:textfield; on the input.




        input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
        }

        input[type=number] {
        -moz-appearance:textfield;
        }

        <input type="number" step="0.01"/>








        share|improve this answer





















        • 1





          I wrapped this in @-moz-document url-prefix() { ... } and it does what I want: hides the spinners in Firefox, where they look bad, but keep them alive in other browsers, including ones that bring up the numeric keyboard as the OP mentioned.

          – Michael Scheper
          Nov 21 '14 at 3:51






        • 2





          Some more useful information from Geoff Graham: Numeric Inputs – A Comparison of Browser Defaults

          – Richard Deeming
          Mar 25 '15 at 19:58






        • 2





          this works and indeed it removes the spinners, but then you are now able to enter alphanumeric characters into it. Hope somebody finds a way to handle that scenario without having to check the entered keys if they are numbers or not.

          – Jovanni G
          Oct 13 '17 at 17:09






        • 1





          @JovanniG: Even if you don't remove the spinners, you can still enter non-numeric characters into the input in Firefox. Try it with the demo on MDN. Chrome prevents non-numeric input in both examples.

          – Richard Deeming
          Oct 16 '17 at 9:54






        • 1





          @alxndr: Also, I've just tried the "Run code snippet" in Chrome 66, and it works as expected.

          – Richard Deeming
          Apr 20 '18 at 10:44


















        424














        According to this blog post, you need to set -moz-appearance:textfield; on the input.




        input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
        }

        input[type=number] {
        -moz-appearance:textfield;
        }

        <input type="number" step="0.01"/>








        share|improve this answer





















        • 1





          I wrapped this in @-moz-document url-prefix() { ... } and it does what I want: hides the spinners in Firefox, where they look bad, but keep them alive in other browsers, including ones that bring up the numeric keyboard as the OP mentioned.

          – Michael Scheper
          Nov 21 '14 at 3:51






        • 2





          Some more useful information from Geoff Graham: Numeric Inputs – A Comparison of Browser Defaults

          – Richard Deeming
          Mar 25 '15 at 19:58






        • 2





          this works and indeed it removes the spinners, but then you are now able to enter alphanumeric characters into it. Hope somebody finds a way to handle that scenario without having to check the entered keys if they are numbers or not.

          – Jovanni G
          Oct 13 '17 at 17:09






        • 1





          @JovanniG: Even if you don't remove the spinners, you can still enter non-numeric characters into the input in Firefox. Try it with the demo on MDN. Chrome prevents non-numeric input in both examples.

          – Richard Deeming
          Oct 16 '17 at 9:54






        • 1





          @alxndr: Also, I've just tried the "Run code snippet" in Chrome 66, and it works as expected.

          – Richard Deeming
          Apr 20 '18 at 10:44
















        424












        424








        424







        According to this blog post, you need to set -moz-appearance:textfield; on the input.




        input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
        }

        input[type=number] {
        -moz-appearance:textfield;
        }

        <input type="number" step="0.01"/>








        share|improve this answer















        According to this blog post, you need to set -moz-appearance:textfield; on the input.




        input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
        }

        input[type=number] {
        -moz-appearance:textfield;
        }

        <input type="number" step="0.01"/>








        input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
        }

        input[type=number] {
        -moz-appearance:textfield;
        }

        <input type="number" step="0.01"/>





        input[type=number]::-webkit-outer-spin-button,
        input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
        }

        input[type=number] {
        -moz-appearance:textfield;
        }

        <input type="number" step="0.01"/>






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 31 '18 at 17:09









        rubo77

        8,2021373157




        8,2021373157










        answered Apr 29 '14 at 20:33









        Richard DeemingRichard Deeming

        20.1k24490




        20.1k24490








        • 1





          I wrapped this in @-moz-document url-prefix() { ... } and it does what I want: hides the spinners in Firefox, where they look bad, but keep them alive in other browsers, including ones that bring up the numeric keyboard as the OP mentioned.

          – Michael Scheper
          Nov 21 '14 at 3:51






        • 2





          Some more useful information from Geoff Graham: Numeric Inputs – A Comparison of Browser Defaults

          – Richard Deeming
          Mar 25 '15 at 19:58






        • 2





          this works and indeed it removes the spinners, but then you are now able to enter alphanumeric characters into it. Hope somebody finds a way to handle that scenario without having to check the entered keys if they are numbers or not.

          – Jovanni G
          Oct 13 '17 at 17:09






        • 1





          @JovanniG: Even if you don't remove the spinners, you can still enter non-numeric characters into the input in Firefox. Try it with the demo on MDN. Chrome prevents non-numeric input in both examples.

          – Richard Deeming
          Oct 16 '17 at 9:54






        • 1





          @alxndr: Also, I've just tried the "Run code snippet" in Chrome 66, and it works as expected.

          – Richard Deeming
          Apr 20 '18 at 10:44
















        • 1





          I wrapped this in @-moz-document url-prefix() { ... } and it does what I want: hides the spinners in Firefox, where they look bad, but keep them alive in other browsers, including ones that bring up the numeric keyboard as the OP mentioned.

          – Michael Scheper
          Nov 21 '14 at 3:51






        • 2





          Some more useful information from Geoff Graham: Numeric Inputs – A Comparison of Browser Defaults

          – Richard Deeming
          Mar 25 '15 at 19:58






        • 2





          this works and indeed it removes the spinners, but then you are now able to enter alphanumeric characters into it. Hope somebody finds a way to handle that scenario without having to check the entered keys if they are numbers or not.

          – Jovanni G
          Oct 13 '17 at 17:09






        • 1





          @JovanniG: Even if you don't remove the spinners, you can still enter non-numeric characters into the input in Firefox. Try it with the demo on MDN. Chrome prevents non-numeric input in both examples.

          – Richard Deeming
          Oct 16 '17 at 9:54






        • 1





          @alxndr: Also, I've just tried the "Run code snippet" in Chrome 66, and it works as expected.

          – Richard Deeming
          Apr 20 '18 at 10:44










        1




        1





        I wrapped this in @-moz-document url-prefix() { ... } and it does what I want: hides the spinners in Firefox, where they look bad, but keep them alive in other browsers, including ones that bring up the numeric keyboard as the OP mentioned.

        – Michael Scheper
        Nov 21 '14 at 3:51





        I wrapped this in @-moz-document url-prefix() { ... } and it does what I want: hides the spinners in Firefox, where they look bad, but keep them alive in other browsers, including ones that bring up the numeric keyboard as the OP mentioned.

        – Michael Scheper
        Nov 21 '14 at 3:51




        2




        2





        Some more useful information from Geoff Graham: Numeric Inputs – A Comparison of Browser Defaults

        – Richard Deeming
        Mar 25 '15 at 19:58





        Some more useful information from Geoff Graham: Numeric Inputs – A Comparison of Browser Defaults

        – Richard Deeming
        Mar 25 '15 at 19:58




        2




        2





        this works and indeed it removes the spinners, but then you are now able to enter alphanumeric characters into it. Hope somebody finds a way to handle that scenario without having to check the entered keys if they are numbers or not.

        – Jovanni G
        Oct 13 '17 at 17:09





        this works and indeed it removes the spinners, but then you are now able to enter alphanumeric characters into it. Hope somebody finds a way to handle that scenario without having to check the entered keys if they are numbers or not.

        – Jovanni G
        Oct 13 '17 at 17:09




        1




        1





        @JovanniG: Even if you don't remove the spinners, you can still enter non-numeric characters into the input in Firefox. Try it with the demo on MDN. Chrome prevents non-numeric input in both examples.

        – Richard Deeming
        Oct 16 '17 at 9:54





        @JovanniG: Even if you don't remove the spinners, you can still enter non-numeric characters into the input in Firefox. Try it with the demo on MDN. Chrome prevents non-numeric input in both examples.

        – Richard Deeming
        Oct 16 '17 at 9:54




        1




        1





        @alxndr: Also, I've just tried the "Run code snippet" in Chrome 66, and it works as expected.

        – Richard Deeming
        Apr 20 '18 at 10:44







        @alxndr: Also, I've just tried the "Run code snippet" in Chrome 66, and it works as expected.

        – Richard Deeming
        Apr 20 '18 at 10:44















        37














        It's worth pointing out that the default value of -moz-appearance on these elements is number-input in Firefox.



        If you want to hide the spinner by default, you can set -moz-appearance: textfield initially, and if you want the spinner to appear on :hover/:focus, you can overwrite the previous styling with -moz-appearance: number-input.






        input[type="number"] {
        -moz-appearance: textfield;
        }
        input[type="number"]:hover,
        input[type="number"]:focus {
        -moz-appearance: number-input;
        }

        <input type="number"/>





        I thought someone might find that helpful since I recently had to do this in attempts to improve consistency between Chrome/FF (since this is the way number inputs behave by default in Chrome).



        If you want to see all the available values for -moz-appearance, you can find them here (mdn).






        share|improve this answer




























          37














          It's worth pointing out that the default value of -moz-appearance on these elements is number-input in Firefox.



          If you want to hide the spinner by default, you can set -moz-appearance: textfield initially, and if you want the spinner to appear on :hover/:focus, you can overwrite the previous styling with -moz-appearance: number-input.






          input[type="number"] {
          -moz-appearance: textfield;
          }
          input[type="number"]:hover,
          input[type="number"]:focus {
          -moz-appearance: number-input;
          }

          <input type="number"/>





          I thought someone might find that helpful since I recently had to do this in attempts to improve consistency between Chrome/FF (since this is the way number inputs behave by default in Chrome).



          If you want to see all the available values for -moz-appearance, you can find them here (mdn).






          share|improve this answer


























            37












            37








            37







            It's worth pointing out that the default value of -moz-appearance on these elements is number-input in Firefox.



            If you want to hide the spinner by default, you can set -moz-appearance: textfield initially, and if you want the spinner to appear on :hover/:focus, you can overwrite the previous styling with -moz-appearance: number-input.






            input[type="number"] {
            -moz-appearance: textfield;
            }
            input[type="number"]:hover,
            input[type="number"]:focus {
            -moz-appearance: number-input;
            }

            <input type="number"/>





            I thought someone might find that helpful since I recently had to do this in attempts to improve consistency between Chrome/FF (since this is the way number inputs behave by default in Chrome).



            If you want to see all the available values for -moz-appearance, you can find them here (mdn).






            share|improve this answer













            It's worth pointing out that the default value of -moz-appearance on these elements is number-input in Firefox.



            If you want to hide the spinner by default, you can set -moz-appearance: textfield initially, and if you want the spinner to appear on :hover/:focus, you can overwrite the previous styling with -moz-appearance: number-input.






            input[type="number"] {
            -moz-appearance: textfield;
            }
            input[type="number"]:hover,
            input[type="number"]:focus {
            -moz-appearance: number-input;
            }

            <input type="number"/>





            I thought someone might find that helpful since I recently had to do this in attempts to improve consistency between Chrome/FF (since this is the way number inputs behave by default in Chrome).



            If you want to see all the available values for -moz-appearance, you can find them here (mdn).






            input[type="number"] {
            -moz-appearance: textfield;
            }
            input[type="number"]:hover,
            input[type="number"]:focus {
            -moz-appearance: number-input;
            }

            <input type="number"/>





            input[type="number"] {
            -moz-appearance: textfield;
            }
            input[type="number"]:hover,
            input[type="number"]:focus {
            -moz-appearance: number-input;
            }

            <input type="number"/>






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 1 '15 at 1:16









            Josh CrozierJosh Crozier

            155k35275224




            155k35275224























                7














                In SASS/SCSS style, you can write like this:



                input[type='number'] {
                -moz-appearance: textfield;/*For FireFox*/

                &::-webkit-inner-spin-button { /*For Webkits like Chrome and Safari*/
                -webkit-appearance: none;
                margin: 0;
                }
                }


                Definitely this code style can use in PostCSS.






                share|improve this answer




























                  7














                  In SASS/SCSS style, you can write like this:



                  input[type='number'] {
                  -moz-appearance: textfield;/*For FireFox*/

                  &::-webkit-inner-spin-button { /*For Webkits like Chrome and Safari*/
                  -webkit-appearance: none;
                  margin: 0;
                  }
                  }


                  Definitely this code style can use in PostCSS.






                  share|improve this answer


























                    7












                    7








                    7







                    In SASS/SCSS style, you can write like this:



                    input[type='number'] {
                    -moz-appearance: textfield;/*For FireFox*/

                    &::-webkit-inner-spin-button { /*For Webkits like Chrome and Safari*/
                    -webkit-appearance: none;
                    margin: 0;
                    }
                    }


                    Definitely this code style can use in PostCSS.






                    share|improve this answer













                    In SASS/SCSS style, you can write like this:



                    input[type='number'] {
                    -moz-appearance: textfield;/*For FireFox*/

                    &::-webkit-inner-spin-button { /*For Webkits like Chrome and Safari*/
                    -webkit-appearance: none;
                    margin: 0;
                    }
                    }


                    Definitely this code style can use in PostCSS.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 9 '18 at 7:23









                    AmerllicAAmerllicA

                    1




                    1























                        4














                        Faced the same issue post Firefox update to 29.0.1, this is also listed out here
                        https://bugzilla.mozilla.org/show_bug.cgi?id=947728



                        Solutions:
                        They(Mozilla guys) have fixed this by introducing support for "-moz-appearance" for <input type="number">.
                        You just need to have a style associated with your input field with "-moz-appearance:textfield;".



                        I prefer the CSS way
                        E.g.:-



                        .input-mini{
                        -moz-appearance:textfield;}


                        Or



                        You can do it inline as well:



                        <input type="number" style="-moz-appearance: textfield">





                        share|improve this answer




























                          4














                          Faced the same issue post Firefox update to 29.0.1, this is also listed out here
                          https://bugzilla.mozilla.org/show_bug.cgi?id=947728



                          Solutions:
                          They(Mozilla guys) have fixed this by introducing support for "-moz-appearance" for <input type="number">.
                          You just need to have a style associated with your input field with "-moz-appearance:textfield;".



                          I prefer the CSS way
                          E.g.:-



                          .input-mini{
                          -moz-appearance:textfield;}


                          Or



                          You can do it inline as well:



                          <input type="number" style="-moz-appearance: textfield">





                          share|improve this answer


























                            4












                            4








                            4







                            Faced the same issue post Firefox update to 29.0.1, this is also listed out here
                            https://bugzilla.mozilla.org/show_bug.cgi?id=947728



                            Solutions:
                            They(Mozilla guys) have fixed this by introducing support for "-moz-appearance" for <input type="number">.
                            You just need to have a style associated with your input field with "-moz-appearance:textfield;".



                            I prefer the CSS way
                            E.g.:-



                            .input-mini{
                            -moz-appearance:textfield;}


                            Or



                            You can do it inline as well:



                            <input type="number" style="-moz-appearance: textfield">





                            share|improve this answer













                            Faced the same issue post Firefox update to 29.0.1, this is also listed out here
                            https://bugzilla.mozilla.org/show_bug.cgi?id=947728



                            Solutions:
                            They(Mozilla guys) have fixed this by introducing support for "-moz-appearance" for <input type="number">.
                            You just need to have a style associated with your input field with "-moz-appearance:textfield;".



                            I prefer the CSS way
                            E.g.:-



                            .input-mini{
                            -moz-appearance:textfield;}


                            Or



                            You can do it inline as well:



                            <input type="number" style="-moz-appearance: textfield">






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered May 20 '14 at 3:30









                            AbhijeetAbhijeet

                            5,09714763




                            5,09714763























                                4














                                /* for chrome */
                                input[type=number]::-webkit-inner-spin-button,
                                input[type=number]::-webkit-outer-spin-button {
                                -webkit-appearance: none;
                                margin: 0;}


                                /* for mozilla */
                                input[type=number] {-moz-appearance: textfield;}





                                share|improve this answer
























                                • above css code is enough to hide html <input type="number"> spinner

                                  – navin prakash
                                  Mar 30 '17 at 10:45
















                                4














                                /* for chrome */
                                input[type=number]::-webkit-inner-spin-button,
                                input[type=number]::-webkit-outer-spin-button {
                                -webkit-appearance: none;
                                margin: 0;}


                                /* for mozilla */
                                input[type=number] {-moz-appearance: textfield;}





                                share|improve this answer
























                                • above css code is enough to hide html <input type="number"> spinner

                                  – navin prakash
                                  Mar 30 '17 at 10:45














                                4












                                4








                                4







                                /* for chrome */
                                input[type=number]::-webkit-inner-spin-button,
                                input[type=number]::-webkit-outer-spin-button {
                                -webkit-appearance: none;
                                margin: 0;}


                                /* for mozilla */
                                input[type=number] {-moz-appearance: textfield;}





                                share|improve this answer













                                /* for chrome */
                                input[type=number]::-webkit-inner-spin-button,
                                input[type=number]::-webkit-outer-spin-button {
                                -webkit-appearance: none;
                                margin: 0;}


                                /* for mozilla */
                                input[type=number] {-moz-appearance: textfield;}






                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Mar 30 '17 at 10:41









                                navin prakashnavin prakash

                                414




                                414













                                • above css code is enough to hide html <input type="number"> spinner

                                  – navin prakash
                                  Mar 30 '17 at 10:45



















                                • above css code is enough to hide html <input type="number"> spinner

                                  – navin prakash
                                  Mar 30 '17 at 10:45

















                                above css code is enough to hide html <input type="number"> spinner

                                – navin prakash
                                Mar 30 '17 at 10:45





                                above css code is enough to hide html <input type="number"> spinner

                                – navin prakash
                                Mar 30 '17 at 10:45





                                protected by Community Apr 6 '17 at 15:29



                                Thank you for your interest in this question.
                                Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



                                Would you like to answer one of these unanswered questions instead?



                                Popular posts from this blog

                                Monofisismo

                                Angular Downloading a file using contenturl with Basic Authentication

                                Olmecas