www.webdeveloper.com
Results 1 to 3 of 3

Thread: Help- Urgent

  1. #1
    Join Date
    Nov 2009
    Posts
    2

    Help- Urgent

    I am new to javascript, and I am facing a bit of a problem.

    I have checkboxes which are created dynamically depending on the number of records being returned. With each row of the product being displayed along side the check box there is also a value called 'product rate' which is being returned for every product. I have to ensure via javascript that the products which are checked are all of the same 'product rate'. how do i do this? Please help me this is very urgent! I have tried a lot of things but it is not working. I took a hidden value for the product rate which again gets populated everytime the check box is created but i didn';t understand how do i create and check the values of the product rate for the ones which are sele cted? Please help me someone!

  2. #2
    Join Date
    May 2003
    Location
    Between Baltimore and DC
    Posts
    3,579
    Urgent, Urgent! I have no answer since you rambled and really did not give enough information.

    You should actually show a sample and what you tried.

    Also, no one cares it is urgent!

    Eric

  3. #3
    Join Date
    Nov 2009
    Posts
    2
    Sorry... Was just a little panicky and screwed up my description of the problem at hand! My bad!

    Anyway, I have something known as 'Product Rate' which is being returned from the database on Page Load. I am capturing it in a hidden field hdnProductRate <=intLoop> and this field is also created dynamically along side the check box of the name chkProduct<=intLoop> where this check box is created everytime the loop runs through. The hidden field is also created for the same number of times that the loop runs. I wish to have a check performed which ensures that the check boxes which are checked on that page are all of the same 'Product Rate'.

    How do I compare the values of all the 'Product Rates' of all the check boxes which are selected? I must be able to display an alert if they are of different product rates.

    Hope I sound clearer now. Sorry again, about my previous post!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles