2 Answers
  • 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

JQuery/JS Input Iteration

I am getting incorrect results from my logic and I'm not sure why. Any recommendations would be highly appreciated. I have dynamically created cards with 1-3 inputs per card. I am trying to iterate through the cards and collect the input values for each individual card but instead I keep getting the input values for all the cards for each iteration

html

js

arr = [] $('.card').each(function (i, obj) {     $('.sample').each (function (i, obj) {         val = $(this).val()         arr.push(val)     }) }) 

I was expecting arr[A, B] and arr[A] but i get arr[A, B, A] and arr[A, B, A]

Download script demo [LINK]
Download script demo [LINK 2] Download script demo [LINK 2]