I have a javascript code. Eg:
<script type="text/javascript">
AJS.$("#customfield_10306 option[value='-1']").remove();
(function($)
{
new AJS.MultiSelect(
{
element: $("#customfield_10306"), itemAttrDisplayed: "label", errorMessage: AJS.params.multiselectComponentsError
});
}
)(AJS.$);
</script>
I would like to put this in a java String type. So,
String someCode = above java script code
What is a quick and nice way of doing this rather than putting all the JS code in one line in quotes and using \ everywhere.
Thanks.