Skip to content

Select manually an item #7

Closed
Closed
@kktos

Description

@kktos

Hum, that's possible, but not straightforward.
you have to find the ".heapBox" related to your select. Depending how you inserted it, it will be before, after or inplace.

$myHeapBox= ....find('.heapBox');

then select the option (by value) you want

$myHeapBox.find('.heapOptions [rel="'+ theValueYouWantToSelect +'"]').click();

So a shortcut would be nice to have. Not to mention it will be safer as I'm relying on your structure here and if you change it, my code will break.

Cheers and kudos for the good job you did on this simple and efficient dropdown.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions