Jump to content

Search the Community

Showing results for tags 'validation javascript'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. <script type="text/javascript" language="javascript"> function checkempty() { if(document.getElementById("title").value=="") { alert("Please enter title."); document.getElementById("title").focus(); return false; } if((document.getElementById("word_count").value>"3000") || (document.getElementById("word_count").value<"400")) { alert("Please enter less than 3000 or more than 400 words."); document.getElementById("word_count").focus(); return false; } return true; } </script> <form method="post" action="" name="my_form" id="theForm" onSubmit="return checkempty();"> <input size="80" id="title" type="text" name="title" value="" /> <textarea id="word_count" name="word_count"></textarea> <input type="submit" name="ok" value="submit" /> /*********this script is not working in the above code **************/ if((document.getElementById("word_count").value>"3000") && (document.getElementById("word_count").value<"400")) { alert("Please enter less than 3000 or more than 400 words."); document.getElementById("word_count").focus(); return false; } i am not good in javascript.. so please can any1 help me????
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.