I'm trying to achieve the two below.
@Html.DropDownListFor(m => m.task_drop, new SelectList(ViewBag.dropList," "), new { @class = "task-drop", id = "dropping", type = "text", placeholder = "Drop the bass", data_tooltip="(this's value)" })
and this
@Html.EditorFor(m => m.task_drop2, new { @Value = Model.task_drop2, htmlAttributes = new { @class = "task-drop2", id = "task_drop2", type = "text", placeholder = "Drop the bass harder", data_tooltip="(this's value)"} })
This is so that the user will be able to see the dropdown's and the textbox's value as a dynamic tooltip when hovering over the dropdown and the textbox itself.
If there's other questions relating to this, please help me get the knowledge of it.
- I've already tried putting this.value inside the data-tooltip parentheses,
- and @value
- The Model.task_drop works but the tooltip will be static
I'm only interested in doing this with the use of html helpers.
I'd like it also if it's for @Html.DropDownlistFor html helper.
But any answers that will make this endeavor possible will be greatly appreciated too. Others might get the need for it :)
Thank you and have a nice day.