I try to make a field in focus when page is loaded. I found two ways; in pure JavaScript and through jquery. But I don't get to work!
Two questions:
1) What is the correct name of the field id (in add-page)? x_firstname, q_x_firstname, sv_x_firstname or as_x_firstname?
Table: guests
Field: firstname
2) Where to put the Jquery or JavaScript?
I mange to narrow down the problem to:
Client Script -> Table_Specific -> Add/Copy Page -> Client Script
$(document).ready(function(){
$(this).find('#x_fieldname').focus();
});
Above works when NOT using lookup table! But as soon as I enable lookup table nothing happens! Is there an conflict or should I point to another id?