We help IT Professionals succeed at work.

Split button functionality

kousis
kousis asked
on
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
Comment
Watch Question

Michel PlungjanIT Expert
CERTIFIED EXPERT
Top Expert 2009

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

CERTIFIED EXPERT

Commented:
<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
IT Expert
CERTIFIED EXPERT
Top Expert 2009
Commented:
Haha... That was not what he meant... Look here:

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

Author

Commented:
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
Michel PlungjanIT Expert
CERTIFIED EXPERT
Top Expert 2009

Commented:
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

Explore More ContentExplore courses, solutions, and other research materials related to this topic.