Retreiving Value from Javascript function

Feb 20, 2009 at 10:15 PM

I am trying to write a function to be used in validation.  Unfortunately, I can't seem to get the value for the flexbox.



script type="text/javascript">
  $(document).ready(function() {
unction validate_fb(src, arg) {
      arg.IsValid = ($('#fb').flexbox.value.length >0);
      return arg.IsValid
  }); //doc ready

I've tried...

and nothing helps.  Can anyone offer some assistance?


Feb 27, 2009 at 5:06 PM
Edited Feb 27, 2009 at 5:13 PM

As a temporary workaround, you can use this:

I will add a function to jquery.flexbox.js to retrieve the current value:

$.fn.getValue = function() {
    return $('#' + this.attr('id') + '_hidden').val();

Then, you will be able to use $('#fb').getValue()


Feb 27, 2009 at 5:08 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.