Hi All,
I've created this simple script to check if jQuery is loaded
<cfoutput>
<cfif GetPageContext().getCFOutput().getBuffer().findStringNoCase("jquery.js") eq -1>
<script type="text/javascript" src="jquery.js"></script>
</cfif>
<script>
$(document).ready( function() {
$("##theValue").val("the replacement");
});
</script>
<input type="Text" name="theValue" id="theValue" value="the value">
</cfoutput>
the whole page is surrounded by cfoutput
is there any better solution?