Jump to content
Sign in to follow this  

Please help me in my code..

Recommended Posts

<script type="text/javascript">
            function qtycheck() {
              var l = "qty_'+row_id+'".val;
              var h = "qtyact_value_'+row_id+'".val;
              //alert("hi " + h + " lo " + l);
              if (l > h) {
                alert("not allowed");
              } else {
                alert("ok, i'll allow it");

Share this post

Link to post
Share on other sites

Following is based on several assumptions.

 - where is row_id coming from and to what does it refer?

 - you have elements id as qty_???.val and qtyact_value_???.val defined?

 - is qty_1.value defined somewhere or does it represent one of the above?
if you have a numeric ID for an element (ie, row.id) it may not work in all browsers

 - there is more code available?  If yes, show pertinent parts.

Difficult to answer questions fully when there is not enough information provided.  Good Luck! :)


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...