I have this piece of code:
var categoryDetailId = $("#createEventForm-categoryDetail-idCategory").val();
and this html from myrendered page:
When I hit the button it goes to Nan
Update: I went in and set that and it didn't work still. I also have this one.
var eventInformationId = $("#createEventForm-eventInformation-idEventInformation").value();
it doesn't set eventInformationId either. The line in the html for it is:
<input type="hidden" name="createEventForm[eventInformation][idEventInformation]" value="1" id="createEventForm-eventInformation-idEventInformation" /></dd>