I have this code but it isn't working on my localhost and I don't know why. Can anyone shed any light on this?
(Script is in head and the other code is in the body)
<script type="text/javascript">
$(function(){
$(input[name='jsenabled']).val('1');
});
</script>
<input type="hidden" name="jsenabled" value="0" />
<label for="signup-email">Sign up for email offers, news & events:</label>
<input type="text" name="signup-email" id="signup-email" />
<input type="submit" id="signup-button" value="Sign Me Up!" />
<p id="signup-response"></p>
</fieldset>
EDITED Weird thing is I have added this code to test if the value has been changed and it does fire up an alert, but firebug doesn't register the change.
$("input[name='jsenabled']").val("1");
if($("input[name='jsenabled']").val = '1') {
alert('frf');
}