jquery ui datepicker - get siblings of input on beforeShow -



jquery ui datepicker - get siblings of input on beforeShow -

i using jquery's datepicker , i'm trying set array on beforeshow based on values in sibling select element.

here's i've tried, it's neither working or throwing errors.

beforeshow: function(input, inst) { $(input).siblings("select.startdates").find("option").each( function() { startdates.push($(this).val()) }); console.log($(input).siblings("select.startdates")) },

the log returns []

the html looks this:

<input class="hasdatepicker" id="myinput" /> <div> <select class="startdates"> <option value="2013, 2, 1">01/03/2013</option> .... </select> </div>

jquery jquery-ui jquery-ui-datepicker

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -