Hi Friends

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Feb 2009
Posts: 1
Reputation: sadhu is an unknown quantity at this point 
Solved Threads: 0
sadhu sadhu is offline Offline
Newbie Poster

Hi Friends

 
0
  #1
Feb 25th, 2009
here i have small issue. pls sort it out 4 me soon n be thankful 4 u


  1. <div id="div1">
  2. <input type="radio" name="radio" id="radio" value="150" onclick="return displayCost(this.value);" />
  3. </div>
  4. <div id="div2">
  5. <select name="select2" size="1" id="select2" onchange="return calculateCost(this.value);">
  6. <option>1</option>
  7. <option>2</option>
  8. <option>3</option>
  9. <option>4</option>
  10. </select>Pages
  11. </div>


here there is no submit button or form. Actually am calling 2 functions for two divs.Its fine even if one function is used by u.
But what i required here is , i should pass both div values ie., dropdown value and radio button value in to a single function. so how to get this two values .
Last edited by peter_budo; Feb 25th, 2009 at 5:42 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 2,052
Reputation: serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light serkan sendur is a glorious beacon of light 
Solved Threads: 123
Featured Poster
serkan sendur serkan sendur is offline Offline
Postaholic

Re: Hi Friends

 
0
  #2
Mar 5th, 2009
Originally Posted by sadhu View Post
here i have small issue. pls sort it out 4 me soon n be thankful 4 u


  1. <div id="div1">
  2. <input type="radio" name="radio" id="radio" value="150" onclick="return displayCost(this.value);" />
  3. </div>
  4. <div id="div2">
  5. <select name="select2" size="1" id="select2" onchange="return calculateCost(this.value);">
  6. <option>1</option>
  7. <option>2</option>
  8. <option>3</option>
  9. <option>4</option>
  10. </select>Pages
  11. </div>


here there is no submit button or form. Actually am calling 2 functions for two divs.Its fine even if one function is used by u.
But what i required here is , i should pass both div values ie., dropdown value and radio button value in to a single function. so how to get this two values .
dont pass any parameter to your calculateCost() function. in the function get the values using document.getElementById("elementID").value and set them to your variables.
Due to lack of freedom of speech, i no longer post on this website.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum


Views: 494 | Replies: 1
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC