Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is my code:


"<% div id="divEditPnl" onkeyup="enableSaveButton();" onclick="enableSaveButton();" onactivate="enableSaveButton();" style="WIDTH:804px;" runat="server">


What I have tried:

While i run this.. i get error as mentioned below:
Validation (XHTML 1.0 Transitional): Attribute 'onactivate' is not a valid attribute of element 'div'.

How can i resolve this?
thanks in advance!
Posted
Updated 9-Mar-16 0:19am
v3

please check Validation[^]
 
Share this answer
 
You can't use onactivate with div - it doesn't support it.
The only attributes it supports are:
id, class, lang, dir, title, style, align
And
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

See the HTML5 spec: 4.4 Grouping content — HTML5[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900