Acessing HTML Element
by accessing elements inHTML classes using Jquery you can change their attributes and behavioures dynamicaly.
as an example think that you need to disable a text box after you click on a button.
example code:
HTML:
<html>
<head>
</head>
</head>
<body>
<input name="testTextBoxName" id="testTextBoxId" value="Test"/>
<button name="testButtonName" id="testButtonId" onclick="EnableTextBox();">Test</button>
</body>
</html>
<input name="testTextBoxName" id="testTextBoxId" value="Test"/>
<button name="testButtonName" id="testButtonId" onclick="EnableTextBox();">Test</button>
</body>
</html>
No comments:
Post a Comment