name="foo" format not working?
Hi,
I'm trying to get a jQuery WYSIWYG editor working in a pre-built perl script. I can't find where the text-area code is built, but I've found the name of the field I want to edit (and the place where the common header stuff is printed). Here is what I have:
- <link rel="stylesheet" type="text/css" href="/cleditor/jquery.cleditor.css" />
<script type="text/javascript" src="/jquery.1.4.4.js"></script>
<script type="text/javascript" src="/cleditor/jquery.cleditor.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
/* $("input[name=Article_Content_Summary]").cleditor(); */
$('#foo').cleditor();
});
</script>
<textarea name="foo" id="foo" width="200" height="200"></textarea>
Although the above DOES work, its not going to work for what I'm trying to do id="foo" is something I manually added in, to prove the plugin works ... but the system doesn't have an id=xx feature, simply name=xx
..this DOESNT work:
- $('input[name="foo"]').cleditor();
TIA
Andy