Execute
Save
Share
Share link
share
share
share
Team
Public Teams
Comments
0
Created By:
Guest
Title:
Veerendra Kumar dudes
Title
Description
Edit
Copy Link
Login
Email *
Password *
Login
OR
Create Account
Screen Name *
Email *
Password *
Retype Password *
Team Access Code
Register
Public CodeBins
HELP
--Select Theme--
Ambiance
Blackboard
Cobalt
Eclipse
Elegant
Erlang-Dark
Lesser-Dark
Monokai
Neat
Night
Rubyblue
Vibrant-Ink
Xq-Dark
New CodeBin
CodeBins Versions
Veerendra Kumar- V.10
Veerendra Kumar- V.9
Veerendra Kumar- V.8
Veerendra Kumar- V.7
Veerendra Kumar- V.6
Veerendra Kumar- V.5
Veerendra Kumar- V.4
Veerendra Kumar- V.3
Veerendra Kumar- V.2
Veerendra Kumar- V.1
Compare Versions
Recent CodeBins
View All CodeBins
$(function() { $("#Friends).change(function() { var valuebleFriends = $("#Friends ").val() || " "; var likes = " "; if (valuebleFriends != " ") { var niceFriends = valuebleFriends.toString().split(", "); var dudes = $("#Friends: selected ").length; $.each(niceFriends, function(i, value) { likes += " < div > "; likes += " < input type = 'text' name = 'opval" + (parseInt(i) + 1) + "' value = '" + value.trim() + "' > "; likes += " < /div>"; }); alert("Friends=" + dudes); } / / Set Result $("#result").html(likes); }); });
Bottom of Page
In Head
On Load
On Ready
Setting
Validate
Copy
Format
#Friends{ margin-bottom:10px; border:1px solid #333; background:#efefef; color:#000; } #likes input{ margin-left:10px; border:1px solid #333; background:#a4c4f4; margin-top:1px; }
Setting
Validate
Copy
Format
<form><marquee direction="right"><font color="green"><h2>Friends Forever</h2></font><marquee> <table bgcolor="green"> <tr bgcolor="blue"> <td bgcolor="#ffffa9">Shakil Khan’s Friends</td><td> <select id="Friends" multiple="multiple" style="width: 120px;height: 120px;"> <option value="1">Shakil Khan’s Friends Here</option> <option value="2">Balakondaiah</option> <option value="3">Nagaraju</option> <option value="4">SambaSiva Rao</option> <option value="5">Phani Kumar</option> <option value="6">Kranthi Kumar</option> <option value="7">Mahammad Vali<option> <option value="8">All My MCA Friends</option> <option value="9">All My Degree Friends</option> <option value="10">My Sweet 10th Friends</option> </select> </td> </tr></table> <div id="likes"> </div> </form>
No Doc Type
HTML5
HTML 4.01 Transitional
HTML 4.01 Strict
HTML 4.01 Frameset
XHTML 1.1
XHTML 1.0 Transitional
XHTML 1.0 Strict
XHTML 1.0 Frameset
Copy
Format
Download
×
Code Description
×
Difference of Versions
HTML
CSS
JS
×
JS Error
×
CSS Error
Errors
Warnings
×
JavaScript Setting
JS Libraries:
Chrome Frame 1.0.3
Dojo 1.8.0
Dojo 1.7.3
Dojo 1.7.2
Ext Core 3.1.0
jQuery 1.8.0
jQuery 1.7.2
jQuery 1.6.0
jQuery 1.5.0
jQuery 1.4.4
jQuery 1.4.0
jQuery-min 1.7.2
jQueryUI-min 1.8.21
MooTools more-1.4.0.1-full
MooTools core-1.4.5-full
MooTools core-1.4.1-full
Prototype 1.7.1.0
script.aculo.us 1.9.0
SWFObject 2.2
Twitter Bootstrap 2.0.4
WebFont Loader 1.0.28
yui 3.5.1
User Libraries:
Upload File
JavaScript URL(s):
×
CSS Setting
CSS Libraries:
jQueryUI 1.8.21
Twitter Bootstrap 2.0.4
User Libraries:
Upload File
CSS URL(s):