Critical Announcement

With great regret, we would like to inform you that the decision has been made to close down as of January 31, 2018.

The community has started to continue the discussion.
See more
See less

How Inactive Submit Button Till User Not Fill The Form?

  • Filter
  • Time
  • Show
Clear All
new posts

  • How Inactive Submit Button Till User Not Fill The Form?

    Hello Guys,
    how inactive submit button till user not fill the form? how can i make it possible, please share your suggestion and feedback.

  • #2
    It will require some JavaScript / jQuery. There are various ways to do it, but the following will work. I've stripped it way down and added minimal CSS for clarity. Adding additional fields will require adding the appropriate information to the script, but by following what's already in the script, depending on your level of proficiency, you ought to be able to figure it out.

    <title>Button enable</title>
        body {font-size: 0.8em; font-family: arial;}
    <script src=""></script>
            //Disable submit button
            //Validate Fields
            var first=$("#first").val();
            var second=$("#second").val();
                    //To enable submit button
                    $("#submit").css({"cursor":"pointer","box-shadow":"2px 2px 8px #bbb","background":"#eee"});
        //Click of submit button
        <form action="" method="get">                
            <input type="text" id="first" value=""/><br /><br />    
            <input type="text" id="second" value=""/><br /><br />            
            <input type="submit" id="submit" value="Submit">                    


    • #3
      Hi Superjohn4455 and welcome to GDF.

      We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done anything wrong, we ask every new member to read them. Your first few posts will be moderated, so don't panic if they don't show up immediately. Enjoy your stay.
      Shop smart. Shop S-Mart.






      Latest Topics


      • B
        Reply to What do you guys think about this designe ?
        I'm guessing that renting a party girl means exactly what one might suspect.

        As for the logo, it looks like a peel-off sticker of some kind. The type is mathematically centered, but visually...
        Today, 09:07 PM
      • PrintDriver
        Reply to migrating or going away?
        Merit badges? Really?
        We'll see what happens I guess.
        Today, 08:19 PM
      • B
        Reply to migrating or going away?
        The project manager, Iraszi, from the company that owns the forum, says the company decided to shut down the forum. He's taken the initiative to set up a new, independent forum that isn't owned by the...
        Today, 07:55 PM
      • PrintDriver
        Reply to What do you guys think about this designe ?
        What do you mean by ''gig design''?

        As for the thing itself, I might put Perth on its own line under Party Girls. The whole thing kind of gives a mixed message. Is it a modeling agency? Is...
        Today, 07:34 PM
      • PrintDriver
        migrating or going away?
        Is this forum migrating to the new or going away and starting over?
        Today, 07:30 PM
      GDF A division of Mediabistro Holdings Adweek | Mediabistro | Clio | Film Expo Group Contact Us | Terms of Use | Privacy Policy Copyright 2016 Mediabistro Holdings