I am working on HTML and JavaScript. I need to store some values in HTML and use that some for other purpose for other languages like JAVA (HTML parsing).
Can I use own attributes like column='helloworld
'? Is it valid in HTML?
I also see "data-"
, but I don't know what happened if I do not use "data-"
.
Does that give any error ?
Please elaborate someone, I have no expertise in HTML.
<input type="text" id="1" class="text-clone" name="default">
<select id="Name" class="dropdown-clone" name="Name">
<option value="">Name</option>
<option value="MyName">myName</option>
</select>
$('#'+id).find("input[type=text]").attr("column",$("#Name").val());
Name value is any string like "myName".
after this when I see on my browser by using inspect element , column="myName" . So I am confused why we can not do this which I did , that is wrong or correct . safe or not ?