views:

51

answers:

1

i have one function which return value in this format

    li#2.ui-widget-content
    li#6.ui-widget-content
    li#12.ui-widget-content
    li#1.ui-widget-content

each time i run function i get random value in the above format.

i want to get value after li# in jquery

Thanks

+6  A: 

This will return everything past the 3rd character (#).

var value = "li#2.ui-widget-content";
var result = value.substr(3);

alert(result);

substr Function Reference

ChaosPandion