Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7821933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:47:26+00:00 2026-06-02T07:47:26+00:00

I have written the below html code with the embedded javascript function disableReturnDate() within

  • 0

I have written the below html code with the embedded javascript function disableReturnDate() within the script tags. But on the close tag is giving an error

*Error*

Multiple annotations found at this line:
  - End tag (</script>) not closed properly, expected >.
  - Unknown tag (script function addReturnDate() { if (document.getElementById('RoundTrip').checked) 
   { document.write("Select Return Date:"); document.write("<script>DateInput('returndate',true,'DD-MON-YYYY');"); 
   document.write("<input type=\"button\" onClick=\"alert(this.form.returndate.value)\" value=\"Show date value 
   passed\">"); } } </script> ).
  - End tag of element <script>

*Code*

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Enter Date-Time, Arrival and Departure Location</title>
<script type="text/javascript" src="calendarDateInput.js"></script>
<script type="text/javascript">
function disableReturnDate() {
    this.form1.returndate.disabled=true;
}
</script>
</head>
<body onload="disableReturnDate()">
<form name="form1" method="post" action="retrievePossibleRoutes.jsp">
Select Travel Date:  
<script>DateInput('traveldate',true,'DD-MON-YYYY');</script> 
<input type="button" onClick="alert(this.form.traveldate.value)" value="Show date value passed">
<br>
Select Return Date:  
<script>DateInput('returndate',true,'DD-MON-YYYY');</script> 
<input type="button" onClick="alert(this.form.returndate.value)" value="Show date value passed">
<input type="radio" name="journeyType" id="OneWay" onClick="disableReturnDate()" checked>One Way<br>
<input type="radio" name="journeyType" id="RoundTrip" onClick="enableReturnDate()">Round Trip<br> 
<br>
Select Departure Location:
<select name="comboDep">
<option></option>
<option></option>
</select>
<input type="submit"/>
<br>
Select Arrival Location:
<select name="comboArrv">
<option></option>
<option></option>
</select>
<input type="submit"/>
</form>
</body>
</html>

Any idea what’s wrong. The code being shown in the error was written before but I have removed that now and it still shows in the error message. Look forward to replies

P.S. The link to the calendarDateInput.js is http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T07:47:27+00:00Added an answer on June 2, 2026 at 7:47 am

    You can verify HTML by using the W3C validator: http://validator.w3.org/check

    Two errors of significance show up. Put

    <!doctype html>
    

    at the start of the HTML (you can specify more info in the doctype tag, so look into this a bit more), and add make sure that all tags have the type attribute set:

    <script type="text/javascript">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written the below code on my view page; @Html.CheckBox(ChxName,true) and I got
All, Below is the code that I have written in JS. <html> <head> <title>Fibonacci
This might be a confusing question but I have written below a Directory crawler,
i have written the below code to display the AlertDialogBox as follows private void
I have written a function below: void trans(double x,double y,double theta,double m,double n) {
I have written grammar for a language (sample code below) //this is a procedure
I have written a pgsql function along the lines of what's shown below. How
I have written a very simple WCF service, that worked fine (code below), then
To dynamically fill DropDown controls on my HTML Form, I have written code that
I have an embeddeble code of a slide like below. this whole html is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.