Bootstrap Tutorial - Change cursor icon for readonly input








The following code shows how to change cursor icon for readonly input.

Example

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
<link rel="stylesheet" type="text/css"
  href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css">
<script type='text/javascript'
  src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<style type='text/css'>
#idValue {<!--   w  w w . j a va 2  s  . c  o m-->
  width: 40px;
  height: 20px;
  background-color: #E6E6E6;
}
</style>

</head>
<body style='margin:30px'>
  <br />
  <br />
    <input id="idValue" size="4" type="text" value="" readonly>
    </input>
</body>
</html>

Click to view the demo