0

I am having one Modal to show form to take Review. Within that, I am using jQuery for ratings. There are 6 different fields in which I am taking ratings using Input type Number.

If I provide common value in all fields then only it is being submitted. If I provide different values in Rating then it prompts error in console:

An invalid form control with name='academic-rating' is not focusable.
An invalid form control with name='accomodation-rating' is not focusable.
An invalid form control with name='faculty-rating' is not focusable.
An invalid form control with name='infrastructure-rating' is not focusable.
An invalid form control with name='social-rating' is not focusable.

What can be issue here?

See this screenshot for better Explanation: Image

  • Control? What you are asking for? Please let me know. – Ashish Revar Apr 18 '17 at 10:51
  • @Satpal I have checked that thread but none of answers given there helped me. That's why I have created this thread along with image and links. Please do check. – Ashish Revar Apr 18 '17 at 10:58
  • 2
    Share your HTML. – Satpal Apr 18 '17 at 11:01
  • Maybe problem is that elements named like `academic-rating` is not actual input field and it' can't receive `focus` property? – Justinas Apr 18 '17 at 11:13
  • you need to show the HTML of these "controls". From the screenshot I suspect they're not form elements at all, but we need to see the markup to prove it. – ADyson Apr 18 '17 at 11:46
  • I am not able to add whole code here. Please check: view-source:http://www.admissionvale.com/college-review/aadishwar-college-venus-kalol – Ashish Revar Apr 18 '17 at 11:49
  • If I provide same value for all Ratings(input[numbers]) then it works perfectly. Issue rise when I provide different values. – Ashish Revar Apr 18 '17 at 11:55
  • "I am not able to add whole code here". No-one said you should. You should add the **relevant** code. See http://stackoverflow.com/help/mcve. Questions that don't include an MCVE are liable to be voted to close by the moderators. Linking to code off-site doesn't count - it can be changed, go offline, be moved, and almost certainly contains a mountain of irrelevant code alongside the problematic section. I for one have no desire to wade through your entire source code to find the important part. – ADyson Apr 18 '17 at 15:20
  • I am using http://www.formvalidator.net/ for validation. If I remove this everything works perfectly. Is there any conflict? – Ashish Revar Apr 18 '17 at 16:30
  • @AshishRevar we don't know because we can't see any relevant code. See my previous comment. – ADyson Apr 19 '17 at 01:16

0 Answers0