new to razor so here is my question.
I am wanting to add some dynamic code to my JavaScript created button:
$('<button ' +
    '"class="btn btn-default btn-outline" ' +
    'id="addEvent" ' +
    'style="top: -20px; position: relative;" ' +
    'data-tooltips="' + @Html.Raw(new ETTData.Models.Held.tips()._tips["RequestID"]) + '">' +
    'Add New Event' +
 '</button>').insertBefore('#theDT_paginate .pagination');
As you can see above, the data-tooltips is the area where I am trying to insert razor code.
Though it seems not to be working. It's just displaying like this:
$('<button ' +
    '"class="tips btn btn-default btn-outline" ' +
    'id="addEvent" ' +
    'style="top: -20px; position: relative;" ' +
    'data-tooltips="' + example 1 + '">' +
    'Add New Event' +
  '</button>').insertBefore('#theDT_paginate .pagination');
And giving the error of:
Expected ')'
I've tried the example that I found HERE but that does not seem to work?
 
     
    