jQuery geoRegionalización

22/Ene/2014 217

Este sencillo plugin permite generar dependencia entre 2 <select> y entre ellos mostrar la relación region / comuna que conforma la distribución geopolítica de la República de Chile.

Ver Demo

HTML base:


<label>Región: </label>
<select id="region">
<option value="">Seleccione</option>
</select>
<label>Comuna: </label>
<select id="comuna">
<option value="">Seleccione</option>
</select>

Uso base:


$('#region').geoRegionalizacion({
    regionDependiente: '#comuna'
});

Uso avanzado:


$('#region-avanzado').geoRegionalizacion({
    regionDependiente: '#comuna-avanzado',
    onRegionSelect: function(){
        console.log($(this).val());
    },
    onComunaSelect: function() {
        console.log($(this).val());
    },
    onCreate: function(){
        $('#region-avanzado, #comuna-avanzado').selectric('refresh');
    }
});

Descargar desde Github/a>

Comentarios

  1. кино тут [#]

    кино тут

  2. http://coub.com/stories/962966-scoliosis-surgery [#]

    I’m really enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more enjoyable for me to come
    here and visit more often. Did you hire out a developer to create
    your theme? Great work! scoliosis surgery https://coub.com/stories/962966-scoliosis-surgery scoliosis surgery

  3. www.iherb.com [#]

    I was curious if you ever considered changing the layout of your blog?
    Its very well written; I love what youve got to say.
    But maybe you could a little more in the way of content
    so people could connect with it better. Youve got an awful lot of text for only having one or two images.
    Maybe you could space it out better? quest bars https://www.iherb.com/search?kw=quest%20bars quest bars

  4. zithromaxeska [#]

    azithromycin pfizer zithromax strength azithromycin 1g side effects

  5. zyrtec d [#]

    allegra d – https://allergyd.com

  6. cetirizine hydrochloride and pseudoephedrine [#]

    zyrtec on sale – https://allergyd.com

  7. www.pharmaceptica.com [#]

    tadalafil alcohol https://www.pharmaceptica.com/

  8. prednisolonewarnings [#]

    prednisone for dogs prednisolone for dogs

  9. ivermectin [#]

    stromectol https://stromectolforte.com/# stromektolin hinta generic stromectol

  10. modafinilandalcohol [#]

    modafinil provigil vs adderall

  11. bactrim side effects [#]

    bactrim 160 800 mg sulfamethoxazole side effects

  12. african viagra [#]

    why would my blood pressure be all over the place http://withouthims.com – viagra otc

  13. ivermectin for humans [#]

    ivermektin köp online http://stromectolforte.com/# stromectol สหราชอาณาจักร ivermectin drug

  14. modafinil200mg [#]

    provigil vs modafinil modafinil prescription online

  15. steroidsprednisone [#]

    prednisone tablets prednisone steroid

  16. viagwithoutdr.com [#]

    what raises blood pressure http://viagwithoutdr.com – viagra price

  17. provigilonline [#]

    buy modalert provigil cost

CSSLab