Jump to content

A Question For Smart People Only ,,actulally Pls Help Me


MhdBadi

Recommended Posts

Actually i wanna ask about sth .. my prof. asked us to write ajavascript code asks the user to take 10 values using only one text box (using forms ),,,and we must make the button blocked after entering the 11th value … i searched the web .. but wasted hours trying the right answer !! but didn’t work :) especially it must be an array variable ..so i thought of it as for loop taking the value from the text print it and then sort the values and print them … but the blockin’ button thing didn’t work :’(plz help me :)

Link to comment
Share on other sites

Read about button elements. One of the properties listed on this page will help you "block" the button. Hint: it is not called "block."Do you know how to assign new values to an array? One way is to use a counting variable. Another is to use a method that adds new values to the beginning or end of the array. Look at the array methods listed here: http://www.w3schools.com/jsref/jsref_obj_array.aspAre you able to keep track of how many values you have added to the array?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...