[jQuery] Disabling parent link if children present

[jQuery] Disabling parent link if children present


Hi,
Is it possible to 'deactivate'/nullify a top-level link in an
unordered list if child links exist in that list?
For example, I have the following:
- Link 1
- Link 2
- Link 3
- Link 4
- Link 4a
- Link 4b
- Link 4c
- Link 5
And I want to knock out Link 4 because it has sub-items.
Is that possible?
Thanks,
osu