Categories | Question details Back To List | ||
Interaction between tabs I'm trying to get form element value from other tab. For example, There is page called main.html and it contains two tabs called A and B. tabbar.addTab("A_tab", "A", "100px"); tabbar.addTab("B_tab", "B", "100px"); tabbar.setHrefMode("ajax-html"); tabbar.setContentHref("A_tab", "a.html"); tabbar.setContentHref("B_tab", "b.html"); And b.html contains one text field called text_b. <input type="text" name="text_b" /> And I want to create button called "Get!" in a.html that gets whatever is entered in text_b when clicked. Is this possible? Can i pass text_b value to a.html without submitting? Answer posted by Alex (support) on Nov 12, 2009 03:19 Hello, you can use document.getElementById method: <input type="text" name="text_b" id="text_b"/> var value = document.getElementById("text_b").value; |