473,396 Members | 1,967 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can I set null value in return date just after .....

vikas251074
198 100+
When the page loads default date is displayed in both date field.
Can I set null value in expected return date just after selecting 'NR' Not returnable in list? Is there any idea?


Expand|Select|Wrap|Line Numbers
  1. <title>Material Entry Form</title>
  2. <!--#include file="Hdr.asp"-->
  3. <script type="text/javascript" src="calendarDateInput.js">
  4. </script>
  5.  
  6. <table>
  7.             <tr>
  8.               <td><font face="Arial, Helvetica, sans-serif" size="2"><b>*Transaction Type</b></font></td>
  9.               <td>
  10.                 <select size="1" name="trans_type"> 
  11.                   <option value="RE" selected>Returnable</option> 
  12.                   <option value="NR">Not Returnable</option> 
  13.                 </select>
  14.               </td>
  15.             </tr>
  16.             <tr>
  17.               <td><font face="Arial, Helvetica, sans-serif" size="2"><b>*Issue Date</b></font></td>
  18.               <td><script>DateInput('issue_dt', true, 'DD/MM/YYYY')</script></td>
  19.             </tr>
  20.             <tr>
  21.               <td><font face="Arial, Helvetica, sans-serif" size="2"><b>&#160 Expected Return Date</b></font></td>
  22.               <td><script>DateInput('exp_ret_dt', true, 'DD/MM/YYYY')</script></td>
  23.             </tr>
  24. </table>
  25.  

Thanks and regards,
Vikas
Jun 6 '08 #1
1 2342
gits
5,390 Expert Mod 4TB
why not ;) ... you just need to use the onchange-handler of your select-node and call a function that refers to that table-cell and sets its innerHTML to whatever you want. or let the DateInput() function know what option is currently selected and call it again onchange of the select ...

kind regards
Jun 6 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Kris M | last post by:
How do i handle a null value for a date variable type. I am retrieving date data from an access database and storing the records in an array for processing. The array field has a date type and the...
1
by: Ken | last post by:
I wrote a function to use in queries that takes a date and adds or subtracts a certain length time and then returns the new value. There are times when my function needs to return Null values. ...
9
by: John Sidney-Woollett | last post by:
Hi I'm building a web app where changes to customer orders are logged in the following table, and I worried about the time that it will take to locate records that need further...
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
5
by: Amogh | last post by:
Hi, My question is related to setting freed pointers to NULL. After freeing a pointer: 1) Should the freeing routine also be responsible for setting the pointer to null? 2) Or, should the...
3
by: Bob Sanderson | last post by:
I have a PHP web page which uses a HTML form. I would like to enter dates into the date fields using a JavaScript calendar, similar to the way phpMyAdmin does. Can anyone recommend a JavaScript...
2
by: mlevit | last post by:
Hi, I've written my own JavaScript and used a couple of codes to set and get cookies from the net I found. When I set the cookie I can see it in my browser, it is set with the right value and...
0
by: tschroeder250 | last post by:
Hi Everyone, There are so many Nullable DateTimePickers out there that this post may not even be found among all the others, but I wanted to try. First, I want to thank all the authors of the...
3
by: janetopps | last post by:
I have a news website, with asp pages, which was on Access, and i upgraded to MySQL, i used Bullzip to transfer the data. It had about 1000 pages, which im now able to pull up on the public side. Im...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.