jquery - Create hyperlink in Javascript in message -


i displaying error validation message in input box when input value more expected.

example - if input value more 1000, error popover says - "some text displayed".

messages:{ thisisaninputid:{     number: 'some message',     min: 'some message',     max:'some message',     required:'some message **need hyperlink here**'     },     ...     ... } 

i displaying message rule of message in javascript file input id. want add href here user can click on error message redirect page.

thanks,

you fire function if input value more 1000.

function alert()   {      var answer = confirm("click ok visit link.") // if click okay, visit link.      if (answer)      {          window.location = "http://stackoverflow.com/questions/43251325/create-hyperlink-in-javascrip-in-message/43251588#43251588"; // change link here.      }  }    alert();


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -