When you say "last sibling in a parent", what does that mean? Which element is your base reference?
In your example: <div> <input ...... /> <span>...</span> </div> Do you mean your <div> is the base reference, and you want to find the last child (thus, <span>) relative to that? And if <span> is not there, you want <input>? On Feb 11, 4:12 pm, Risingfish <risingf...@gmail.com> wrote: > Before I accidentally hit enter, this is what I was trying to type: :) > > <div> > <input ...... /> > <span>...</span> > </div> > > The span might or might not be there, so I would like to just get the > last sibling in a parent. > > Thanks!