Skip to content

support for longer chained Value attribute#83

Description

@hijoem

This is a really great plugin 馃憤 but it's a shame that it seems no more maintained.

In example given, value attribute was only 1 word while in my code there are more.

So my code was like these ( I'm using bootstrap v.4.60 | jquery 3 | jquery.chained v2.0.0-beta.3 ):
parent:
<option value="Spesialis Penyakit Dalam">Spesialis Penyakit Dalam</option>
child:
<option value="dr. Maizena Tepung Kanji, SpPD-KGH ( Spesialis Penyakit Dalam )" data-chained="Spesialis Penyakit Dalam">

I spent 2 hours reading docs, browsing, then doing some console.log()s
to figure it out that I only need to edit line 80 in jquery.chained.js :
from matches = data.split(" ");
to matches = data;

That's all.

I don't know what impacts it will bring to other codes, but it worked like a charm for me without any issue.

I hope it will help someone out there 馃憤

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions