A
amykimber
Hi all,
I know I'm doign something really daft, but I can't get this to
work...
I have a form with a bunch of inputs called ship_owner[] - why the
[]? Because I'm submitting this page though php and the [] put the data
into an array in the post.... anywhat.
I have a link <a href="javascript:change_class()" >Block mode</a> to
call the following function that's in my head section.
<script>
function change_class(var_type)
{
for (i=0; i<document.getElementsByName('ship_owner[]').length; i++)
{
document.getElementsByName('ship_owner[]').style.className="input_to_text";
}
}
</script>
I have the following style sheet also in my head.
<style>
<!--
input_to_text {
border: 1px solid #000;
background: #987;
padding: 1px;
Font-family: Veranda;
font-size: 10px;
color: #fff;
font-weight: bold;
}
</style>
When I click the link my input boxes aren't changing at all......
help
Many many thanks
Amy
I know I'm doign something really daft, but I can't get this to
work...
I have a form with a bunch of inputs called ship_owner[] - why the
[]? Because I'm submitting this page though php and the [] put the data
into an array in the post.... anywhat.
I have a link <a href="javascript:change_class()" >Block mode</a> to
call the following function that's in my head section.
<script>
function change_class(var_type)
{
for (i=0; i<document.getElementsByName('ship_owner[]').length; i++)
{
document.getElementsByName('ship_owner[]').style.className="input_to_text";
}
}
</script>
I have the following style sheet also in my head.
<style>
<!--
input_to_text {
border: 1px solid #000;
background: #987;
padding: 1px;
Font-family: Veranda;
font-size: 10px;
color: #fff;
font-weight: bold;
}
</style>
When I click the link my input boxes aren't changing at all......
help
Many many thanks
Amy