471,830 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Delete default value in the field

263 100+
Hi all.

I have this:

Expand|Select|Wrap|Line Numbers
  1. <input type="text" name="agg" size="30" value="---" readonly>
  3. <select size="1" name="provv" onchange="var cc = this.options[this.selectedIndex].value; if(cc=='GAM')Popup(400,200,'GAM.asp');">
  4. <option value="">---------</option>
  5. <option value="GAM">GAM</option>
  6. <option value="GBM">GBM</option>
  7. </select>
If select GAM value open popup... I need if select GAM the value of field input type text "agg" is value null, deleted default value "---"... it's possible ?

Can you help me?
Oct 1 '09 #1
3 2004
8,658 Expert Mod 8TB
sure, though it’d be easier, if you gave the field an id.
Oct 1 '09 #2
263 100+
One example please....?
Oct 1 '09 #3
8,658 Expert Mod 8TB
let’s try the obvious first
Expand|Select|Wrap|Line Numbers
  1. document.getElementById(…).value = "";
Oct 1 '09 #4

Post your reply

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

Similar topics

8 posts views Thread by Steve | last post: by
4 posts views Thread by David B | last post: by
6 posts views Thread by Bernd Smits | last post: by
2 posts views Thread by James G via AccessMonster.com | last post: by
17 posts views Thread by (PeteCresswell) | last post: by
11 posts views Thread by Ed Dror | last post: by
reply views Thread by NeoPa | last post: by
reply views Thread by aboka | last post: by

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.