Link to home
Start Free TrialLog in
Avatar of kousis
kousis

asked on

Split button functionality

Hi
I want to implement the Split button functionality with out yahoo library,Is that possible to achive in simple javasript. can you please give a sample code.

Thanks in Advance
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

No. It is not possible to achieve in SIMPLE javascript...

<script type="text/javascript">var str="How are you doing today?";document.write(str.split(" ") + "<br />");
document.write(str.split("") + "<br />");
document.write(str.split(" ",3));</script>

refer this

http://www.w3schools.com/jsref/jsref_split.asp
http://www.pageresource.com/jscript/jstring2.htm
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kousis
kousis

ASKER

yeap! right .. I need the same as

http://developer.yahoo.com/yui/examples/button/btn_example08.html

I am using yahoo dom.. but JS functions seems to be very complicated. I need to modify it. can you explain it what I have to do in order to implement in simple way.

Thanks
I repeat. It is not possible to do with SIMPLE javascript, so why re-invent the wheel?

What do you need to modify?
Forced accept.

Computer101
EE Admin