Dynamic create array for jquery

时间:2017-08-30 20:10:00

标签: javascript jquery arrays

Below jQuery code working fine. But I want to add enableDays with response of Json like public function store(Request $request) { $data = $request->get('type'); $country = Country::create([ 'user_id' => '1', 'country' => $data['name'] ]); }

<div class="container">
    <form action="/form" method="post">
        {{csrf_field()}}
        @for($x = 0; $x++ < 50;)
            <input type="text" name="type[name]">
        @endfor

        <button type="submit">Submit</button>
    </form>
</div>

I have tried with

public static void reader(){
        String details;

        try{
            File file = new File("file/User.txt");
            Scanner input = new Scanner(file);

            while(input.hasNextLine()){
                details = input.nextLine();
                System.out.println(" read file details : "+details);
            }
            input.close();

        }catch(Exception e){
            e.printStackTrace();
        }
    }

But I can't get result in created calender. Full code is added here. Response Json is jQuery.each(json.available_dates, function (i, v) { }); See working code is jsfiddle

0 个答案:

没有答案