I am getting the error missing ) after argument list in my Firebug console.
I can't understand why. The problem is with the text that is passed in as an argument to the before() method. I am pretty sure it's something to do with the quotation marks. I have tried doing \" and \' instead of ' but neither was successful, they gave different errors.
As long as I can add the HTML that is within the before() method I don't mind how I solve this.
$(document).ready(
function () {
$("#add").click(
function () {
$("#add").before("<s:text name='queries[0].property' class='small-text' size='28'/><span class='small-text'> = </span>");
});
});