我正在努力做到这一点
当用户点击 Ballasted Roof Mount 链接时,会出现一个下拉菜单,他们点击 REQUEST A QUOTE 并将他们带到 REQUEST A QUOTE PAGE。
我想要它,以便当用户单击压载屋顶安装上的报价链接请求时,产品类型下的选择标签更改为压载屋顶安装,但对于每个页面,它会自动默认为第一个选项,即屋顶安装。
我可以通过传入参数来使用jQuery吗?
这是我的主要导航代码
#ir_main_nav_container
%ul#ir_main_nav
%li
= link_to 'Roof Mount', '/products/roofmounting/overview'
%span.carrot
%ul#rm_sub_menu
%li= link_to 'Overview', '/products/roofmounting/overview'
%li= link_to '360 View', '/products/roofmounting/360view'
%li= link_to 'Tech Specs', '/products/roofmounting/techspecs'
%li= link_to 'Support', '/products/roofmounting/systemsupport'
%li.configure_btn= link_to raw("#{config_icon} Configure"), '/rm'
%li.quote_btn= link_to raw("#{config_quote} Get a Quote"), '/support/requestaquote'
%li
= link_to 'Ballasted Roof Mount', '/products/ballastedroofmounting/overview'
%span.carrot
%ul#brm_sub_menu
%li= link_to 'Overview', '/products/ballastedroofmounting/overview'
%li= link_to '360 View', '/products/ballastedroofmounting/360view'
%li= link_to 'Tech Specs', '/products/ballastedroofmounting/techspecs'
%li= link_to 'Support', '/products/ballastedroofmounting/systemsupport'
%li.configure_btn= link_to raw("#{config_icon} Configure"), '/brm'
%li.quote_btn= link_to raw("#{config_quote} Get a Quote"), '/support/requestaquote'
%li
= link_to 'Ground Mount', '/products/groundmounting/overview'
%span.carrot
%ul#gm_sub_menu
%li= link_to 'Overview', '/products/groundmounting/overview'
%li= link_to '360 View', '/products/groundmounting/360view'
%li= link_to 'Tech Specs', '/products/groundmounting/techspecs'
%li= link_to 'Support', '/products/groundmounting/systemsupport'
%li.configure_btn= link_to raw("#{config_icon} Configure"), '/sga'
%li.quote_btn= link_to raw("#{config_quote} Get a Quote"), '/support/requestaquote'
%li
= link_to 'Pole Mount', '/products/polemounting/overview'
%span.carrot
%ul#pm_sub_menu
%li= link_to 'Overview', '/products/polemounting/overview'
%li= link_to '360 View', '/products/polemounting/360view'
%li= link_to 'Tech Specs', '/products/polemounting/techspecs'
%li= link_to 'Support', '/products/polemounting/systemsupport'
%li.configure_btn= link_to raw("#{config_icon} Configure"), '/pm'
%li.quote_btn= link_to raw("#{config_quote} Get a Quote"), '/support/requestaquote'
这是请求报价页面的代码
<!-- container starts here -->
<div id="container">
<br/>
<h1>GET A QUOTE</h1>
<div class="clear"> </div>
<form action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" name="form1" id="form1" method="POST" target="_parent">
<input type=hidden name="oid" value="00DU0000000I430">
<input type=hidden name="retURL" value="http://www.ironridge.com">
<div class="clear"></div>
<div id="footer_form" style="float:left">
<label>Product Type</label>
<select id="00NU0000001hkz3" name="00NU0000001hkz3" class="txt_field" title="Application Type"><option value="Roof Mount">Roof Mount</option>
<option value="Ballasted Roof Mount">Ballasted Roof Mount</option>
<option value="Ground Mount">Ground Mount</option>
<option value="Pole Mount">Pole Mount</option>
</select> <br/> <br/>
我正在使用 HAML 和 HTML 提前感谢您的输入
这是我正在谈论的图像的链接,也许它会有所帮助 http://cmclove.org/Google%20Chrome1.png