with the introduction of html5, you can use attributes that start with data-
, and they’ll still validate.
<input type="text" name="username" data-parentTab="tab1" value="non-default">
More Related Contents:
- How to get current formatted date dd/mm/yyyy in Javascript and append it to an input [duplicate]
- HTML tag want to add both href and onclick working
- Full text search in HTML ignoring tags / &
- How does the location of a script tag in a page affect a JavaScript function that is defined in it?
- Calculate Position of selected text javascript/JQuery?
- Preserve browser window aspect ratio while shrinking [closed]
- How can i create html automatic change page? [duplicate]
- Changing website favicon dynamically
- Detecting input change in jQuery?
- How to draw an inline svg (in DOM) to a canvas?
- Programmatically trigger “select file” dialog box
- How do I preserve line breaks when getting text from a textarea?
- How to get browser width using JavaScript code?
- Ignore mouse interaction on overlay image
- HTML table with fixed headers and a fixed column? [closed]
- How to break line in JavaScript?
- HTML Mobile -forcing the soft keyboard to hide
- Web Workers and Canvas
- Convert html table to array in javascript
- HTML Drag And Drop On Mobile Devices
- Detect input value change with MutationObserver
- How do I make a move up and down when I’m scrolling the page?
- Hide div element when screen size is smaller than a specific size
- HTML5 video javascript controls – restart video
- Trigger for span text/html on changed
- minimise the code since I am using the same code only the content in p tags changes and component AccordionHeader header changes
- Copy/Paste from Excel to a web page
- onclick event function in JavaScript
- Cross-Origin resource sharing and file://
- Content of html page changed by jQuery but “View Source” don’t reflect the changes