Asteroid
Asteroid

Reputation: 57

Microsoft JScript runtime error: Object doesn't support property or method 'html'

I am getting the Microsoft JScript runtime error: Object doesn't support property or method 'html' error.

Javascript files included :

<script src="../../Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-ui-1.8.16.custom.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
<script src="../../Scripts/spin.js" type="text/javascript"></script>

Code Sample

$(this).closest('td').siblings()[6].html('Great');

Can you please help me track what is the issue.

Upvotes: 0

Views: 1371

Answers (2)

Hadash
Hadash

Reputation: 228

Use this code:

$(this).closest('td').siblings().eq(6).html('Great');

Upvotes: 0

Halcyon
Halcyon

Reputation: 57721

.html is not a function of DOMNode.

Try:

$(this).closest('td').siblings().eq(6).html('Great');

Upvotes: 1

Related Questions