The simple way to use it is… the exact source from my previous example.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> - jsFiddle demo by jakecigar</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-git.js'></script>
<link rel="stylesheet" type="text/css" href="/css/result-light.css">
<style type='text/css'>
</style>
- <script type='text/javascript'>//<![CDATA[
- $(function(){
- $("#mySelect option[value='test']").prop("disabled",true);
- });//]]>
- </script>
</head>
<body>
<select id="mySelect">
<option value="corn">corn </option>
<option value="test">test </option>
<option value="rice">rice </option>
</select>
</body>
</html>
Are you actually RE-creating the <select>, or is it only the original?
JΛ̊KE
PS
Jake !== Jack.