9

A user asked the question Yii2 validation rule for multiple inputs with same name which I answered. They then commented:

Thanks. Your code works fine if these kind of multiple inputs already exist in a form but when I add new inputs using jQuery in a form then it does not work. So please can you assist me for that ?

After a bit of probing, I recommended that they ask a new question instead of editing the current one to include this information, because

  1. in my opinion these are two separate issues
  2. the new issue was (probably) javascript and not php
  3. I couldn't answer the new issue without some research and more detail. By asking a new question, they could get a better answer faster.

Was this the correct way to handle this?

5

0

Browse other questions tagged .