I’m using CActiveForm and was wondering if it is possible to use the enter key (return key) to tab (move to next field) instead of submitting the form… I have already changed the SubmitButton to onclick. I basically want to swap the tab and enter key. I don’t know ajax coding.
Oh my God it worked. Thank you so much. Now I am being greedy and want to try answers 1-2. I just don’t know where all the pieces go. I wish I knew jquery it is pretty cool. For answer 1. do I just replace the code from answer 10? Where does " $(’#form-id’).enterAsTab(); " go.
I really would like to get the plusastab.js to work. Do you know if it is possible for the jquery plugin plusastab.js to work with the Yii Framework? This jquery script looks awesome.
Thanks again for leading me in the right direction.
One more question. I’m using the jquery enterAsTab example you showed me. The enter key works except when it comes to a <a href> which it skips over. Would I use ${this}.attr(“type”) and what type would <a href> be. Or with this.find(‘input, select’)?