Can someone help me with this ActionLink I want to open a hidden Div with in Razor,
This is the link,
<a class='inline' href="#inline_content">Inline HTML</a>
And this is the script,
<script>
$(document).ready(function () {
$(".inline").colorbox({ inline: true, width: "50%" });
});
</script>
And also the Div,
<p><a class='inline' href="#inline_content">Inline HTML</a></p>
<div style='display:none'>
<div id='inline_content' style='padding:10px; background:#fff;'>
<p><strong>This content comes from a hidden element on this page.</strong></p>
<p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.</p>
</div>
</div>
Edit
I need the HTML link re-written in an MVC Razor style ActionLink, the code works fine in HTML, just not in Razor. The HTML link posts to a new page in Razor so I think I need an ActionLink to post to the script.
<a class='inline' href="#inline_content">Inline HTML</a>
e.g..
@Html.ActionLink("Inline HTML", null, null, new { Class="inline", onclick = "#inline_content();" });