{"id":735,"date":"2023-10-13T10:44:49","date_gmt":"2023-10-13T10:44:49","guid":{"rendered":"https:\/\/usecase.cubewp.com\/streetwise\/?post_type=unit&#038;p=735"},"modified":"2023-10-24T13:43:24","modified_gmt":"2023-10-24T13:43:24","slug":"cheema-hous-566-3","status":"sold","type":"unit","link":"https:\/\/usecase.cubewp.com\/streetwise\/unit\/cheema-hous-566-3\/","title":{"rendered":"Cheema Hous-#566"},"content":{"rendered":"<p><span class=\"hljs-keyword\">var<\/span> selectedValue = <span class=\"hljs-string\">&#8216;YourDesiredOptionValue&#8217;<\/span>; <span class=\"hljs-comment\">\/\/ Select the dropdown by its name attribute.<\/span> <span class=\"hljs-keyword\">var<\/span> dropdown = <span class=\"hljs-title function_\">jQuery<\/span>(<span class=\"hljs-string\">&#8216;select[name=&#8221;cwp_user_form[cwp_meta][st_unit_building]&#8221;]&#8217;<\/span>); <span class=\"hljs-comment\">\/\/ Set the selected value in the dropdown.<\/span> dropdown.<span class=\"hljs-title function_\">val<\/span>(selectedValue);<\/p>\n<p><span class=\"hljs-keyword\">var<\/span> selectedValue = <span class=\"hljs-string\">&#8216;YourDesiredOptionValue&#8217;<\/span>; <span class=\"hljs-comment\">\/\/ Select the dropdown by its name attribute.<\/span> <span class=\"hljs-keyword\">var<\/span> dropdown = <span class=\"hljs-title function_\">jQuery<\/span>(<span class=\"hljs-string\">&#8216;select[name=&#8221;cwp_user_form[cwp_meta][st_unit_building]&#8221;]&#8217;<\/span>); <span class=\"hljs-comment\">\/\/ Set the selected value in the dropdown.<\/span> dropdown.<span class=\"hljs-title function_\">val<\/span>(selectedValue);<\/p>\n<p><span class=\"hljs-keyword\">var<\/span> selectedValue = <span class=\"hljs-string\">&#8216;YourDesiredOptionValue&#8217;<\/span>; <span class=\"hljs-comment\">\/\/ Select the dropdown by its name attribute.<\/span> <span class=\"hljs-keyword\">var<\/span> dropdown = <span class=\"hljs-title function_\">jQuery<\/span>(<span class=\"hljs-string\">&#8216;select[name=&#8221;cwp_user_form[cwp_meta][st_unit_building]&#8221;]&#8217;<\/span>); <span class=\"hljs-comment\">\/\/ Set the selected value in the dropdown.<\/span> dropdown.<span class=\"hljs-title function_\">val<\/span>(selectedValue);<br \/>var selectedValue = &#8216;YourDesiredOptionValue&#8217;; \/\/ Select the dropdown by its name attribute. var dropdown = jQuery(&#8216;select[name=&#8221;cwp_user_form[cwp_meta][st_unit_building]&#8221;]&#8217;); \/\/ Set the selected value in the dropdown. dropdown.val(selectedValue);<br \/>var selectedValue = &#8216;YourDesiredOptionValue&#8217;; \/\/ Select the dropdown by its name attribute. var dropdown = jQuery(&#8216;select[name=&#8221;cwp_user_form[cwp_meta][st_unit_building]&#8221;]&#8217;); \/\/ Set the selected value in the dropdown. dropdown.val(selectedValue);<\/p>\n<p><span class=\"hljs-keyword\">var<\/span> selectedValue = <span class=\"hljs-string\">&#8216;YourDesiredOptionValue&#8217;<\/span>; <span class=\"hljs-comment\">\/\/ Select the dropdown by its name attribute.<\/span> <span class=\"hljs-keyword\">var<\/span> dropdown = <span class=\"hljs-title function_\">jQuery<\/span>(<span class=\"hljs-string\">&#8216;select[name=&#8221;cwp_user_form[cwp_meta][st_unit_building]&#8221;]&#8217;<\/span>); <span class=\"hljs-comment\">\/\/ Set the selected value in the dropdown.<\/span> dropdown.<span class=\"hljs-title function_\">val<\/span>(selectedValue);<\/p>\n<p><span class=\"hljs-keyword\">var<\/span> selectedValue = <span class=\"hljs-string\">&#8216;YourDesiredOptionValue&#8217;<\/span>; <span class=\"hljs-comment\">\/\/ Select the dropdown by its name attribute.<\/span> <span class=\"hljs-keyword\">var<\/span> dropdown = <span class=\"hljs-title function_\">jQuery<\/span>(<span class=\"hljs-string\">&#8216;select[name=&#8221;cwp_user_form[cwp_meta][st_unit_building]&#8221;]&#8217;<\/span>); <span class=\"hljs-comment\">\/\/ Set the selected value in the dropdown.<\/span> dropdown.<span class=\"hljs-title function_\">val<\/span>(selectedValue);<\/p>\n","protected":false},"featured_media":0,"template":"","unit_category":[],"location":[],"class_list":["post-735","unit","type-unit","status-sold","hentry"],"cubewp_post_meta":[],"taxonomies":[],"_links":{"self":[{"href":"https:\/\/usecase.cubewp.com\/streetwise\/wp-json\/wp\/v2\/unit\/735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/usecase.cubewp.com\/streetwise\/wp-json\/wp\/v2\/unit"}],"about":[{"href":"https:\/\/usecase.cubewp.com\/streetwise\/wp-json\/wp\/v2\/types\/unit"}],"wp:attachment":[{"href":"https:\/\/usecase.cubewp.com\/streetwise\/wp-json\/wp\/v2\/media?parent=735"}],"wp:term":[{"taxonomy":"unit_category","embeddable":true,"href":"https:\/\/usecase.cubewp.com\/streetwise\/wp-json\/wp\/v2\/unit_category?post=735"},{"taxonomy":"location","embeddable":true,"href":"https:\/\/usecase.cubewp.com\/streetwise\/wp-json\/wp\/v2\/location?post=735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}