I am trying to put a ternary operator inside an input element.The problem is that this causes the input element NOT to be printed in the browser.This is it:
'<input class="price_show"'+ show_pr_val.value==1 ? "checked":"";+ 'type="radio" name="form[price_show]" value="1">yes'+
Do you see anything wrong with the above,from a syntax point of view or any other view?
This is the whole code segment:here