Jump to content

[SOLVED] character legnth


verN

Recommended Posts

echo ('<p><input id="seminarT "name="seminarT" type="text" size="60" value="'.$sem_title.'" onchange="checkInput()" /></p>');

 

function checkInput() {

var str = document.getElementByName("seminarT").value;

if ( str.Length > 10 ) {

alert("Please enter less than 20 characters");

}

}

 

i am using this code but nothing gets outputted when I type in more then 20 charaters. Any hellp will be good. Thanks

Link to comment
https://forums.phpfreaks.com/topic/47947-solved-character-legnth/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.