I have a [submit] and [preview] button. I want the preview to show the print type of the submitted form data without saving it in the database. Therefore, I want the [preview] to open in a new tab and go to send data in the same window / tab.
<button type="submit" id="liquidacion_save" name="liquidacion[save]" onclick="$('form').attr('target', '');">Save</button></div> <div> <button type="submit" id="liquidacion_Previsualizar" name="liquidacion[Previsualizar]" onclick="$('form').attr('target', '_blank');">Preview</button></div>
juanmf Oct 30 '13 at 19:29 2013-10-30 19:29
source share