I have java script function
function SetTextBoxValue(data) {
$('#text_box').val($(this).val("myField"))
};
Is it possible, and how, to call only this function, WITHOUT controller and action names from @Html.ActionLink()
in razor view?
To extend a question, i have table and a form with 4 text boxes on same view. I need to fill one textbox with a value of a specific column in table when user click on link in that column.
$(this)
in the context of the function?). Show the html and indicate what your trying to do. – Stephen Muecke Oct 27 '14 at 1:44$(this)
would beWindow
. I think your going about this the wrong way. Post some html so it clearer what your trying to do. – Stephen Muecke Oct 27 '14 at 1:58Html.Actionlink
if you only need js code to execute? – David Tansey Oct 27 '14 at 2:19