KaiAllard_ has asked for the wisdom of the Perl Monks concerning the following question:
I want to "unset/remove/delete" the onfocus and onblur attributes if there was a change.$string .= $cgi->textfield( -name => 'name', -default => 'def', -override => 0, -size => 20, -maxlength => 120, -onfocus => "this.value = ''", -onblur => "this.value = 'def'", -onchange => "delete onfocus, delete onblur", #how? );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI delete attributes set in textfield()
by Fletch (Bishop) on Feb 21, 2008 at 14:51 UTC | |
by KaiAllard_ (Initiate) on Feb 21, 2008 at 15:21 UTC | |
by Fletch (Bishop) on Feb 21, 2008 at 15:37 UTC | |
|
Re: CGI delete attributes set in textfield()
by tilly (Archbishop) on Feb 21, 2008 at 18:11 UTC |