Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS and Readonly

Status
Not open for further replies.

GaryC123

Programmer
Sep 10, 2002
1,041
NO
Dunno if this is possible.
I've got a css style loading dependant on a value within an if statement like this

<%if ty=1 then%>
<style type=&quot;text/css&quot;>
input {border-width:0}
</style>
<%end if %>

But I'm wondering is there a way to add in the READONLY property to the css style, can't just do
input {border-width:0 READONLY}



 
css can't set something as readonly, you need to do one of two things...

<input name=&quot;thisName&quot; READONLY value=&quot;that value&quot;>

OR

<script>
document.myForm.myField.readonly = true
</script>

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rich Cook
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top