作者:伊金芳60442 | 来源:互联网 | 2023-08-28 06:30
Heresatrickyonetostartthemorning.从早上开始,这是一个棘手的问题。Ihaveaseriesoficons.Whenyouclick
Here's a tricky one to start the morning.
从早上开始,这是一个棘手的问题。
I have a series of icons. When you click an icon it loads a form. Some of the forms have input[text] others have textareas.
我有一系列的图标。单击图标时,它会加载表单。有些表格有输入[text],其他表格有textareas。
What I'm trying to come up with is jQuery that once I load the form I can run that will... Focus in on the first input or textarea whatever it may be, dynamically so I don't need if blocks.
我想要提出的是jQuery,一旦我加载了表单,我就可以运行...将注意力集中在第一个输入或textarea,无论它是什么,动态,所以我不需要if块。
Ideas?
想法?
9 个解决方案