Welcome Guest, Not a member yet? Register   Sign In
Drop_down and some_function()
#3

[eluser]OlegasD[/eluser]
in the view i use

[removed]
function textCounter(field,cntfield,maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
cntfield.value = maxlimit - field.value.length;
}
// End -->
[removed]


$js_message = 'onKeyDown="textCounter(document.myMessage.message,document.myMessage.remLen1,'.$max_message_chars.')" onKeyUp="textCounter(document.myMessage.message,document.myMessage.remLen1,'.$max_message_chars.')"';



<?php echo form_textarea($message,'', $js_message)?>

It's not about dropdown, but you should get the idea


Messages In This Thread
Drop_down and some_function() - by El Forum - 10-02-2010, 04:51 AM
Drop_down and some_function() - by El Forum - 10-04-2010, 08:12 AM
Drop_down and some_function() - by El Forum - 10-04-2010, 01:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB